summaryrefslogtreecommitdiff
path: root/chinese/wenju/files/patch-src::wrap::wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/wenju/files/patch-src::wrap::wrap.c')
-rw-r--r--chinese/wenju/files/patch-src::wrap::wrap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/chinese/wenju/files/patch-src::wrap::wrap.c b/chinese/wenju/files/patch-src::wrap::wrap.c
new file mode 100644
index 000000000000..5d3136d2da4a
--- /dev/null
+++ b/chinese/wenju/files/patch-src::wrap::wrap.c
@@ -0,0 +1,11 @@
+--- 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) {