1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/chinese/wenju/files/patch-src::wrap::wrap.c
Vanilla I. Shu 958a7eb309 Add wenju 1.1, collection of writing tools in Chinese.
PR:		58181
Submitted by:	Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
2003-11-09 12:12:42 +00:00

12 lines
458 B
C

--- src/wrap/wrap.c.orig Sat Oct 18 05:37:16 2003
+++ src/wrap/wrap.c Sat Oct 18 05:36:19 2003
@@ -293,7 +293,7 @@
size = 0;
p = NULL;
/* Read in an input line. */
- while ((length = getline(&p, &size, fp)) > 0) {
+ while ((length = fgets(p, size, fp)) > 0) {
if (p[0] == '\n') {
/* An empty line signals the end of the paragraph. */
if (strcmp(text->str, "\n") == 0) {