summaryrefslogtreecommitdiff
path: root/chinese/wenju/files/patch-src::tim::timtable.c
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2003-11-09 12:12:42 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2003-11-09 12:12:42 +0000
commit958a7eb309a084ebc9329caf306e91c6ece07d73 (patch)
tree335aef05ca5961ad8842095885e7187a78ae87a8 /chinese/wenju/files/patch-src::tim::timtable.c
parentFormer commit log was wrong. (diff)
Add wenju 1.1, collection of writing tools in Chinese.
PR: 58181 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
Notes
Notes: svn path=/head/; revision=93525
Diffstat (limited to 'chinese/wenju/files/patch-src::tim::timtable.c')
-rw-r--r--chinese/wenju/files/patch-src::tim::timtable.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/chinese/wenju/files/patch-src::tim::timtable.c b/chinese/wenju/files/patch-src::tim::timtable.c
new file mode 100644
index 000000000000..285b36d18446
--- /dev/null
+++ b/chinese/wenju/files/patch-src::tim::timtable.c
@@ -0,0 +1,20 @@
+--- src/tim/timtable.c.orig Sat Oct 18 05:34:57 2003
++++ src/tim/timtable.c Sat Oct 18 05:35:14 2003
+@@ -86,7 +86,7 @@
+
+ line = (char *)malloc(n*sizeof(char));;
+ /* getline() is a GNU externsion */
+- while ((l = getline(&line, &n, fp)) > 0) {
++ while ((l = fgets(line, n, fp)) > 0) {
+ l = preprocess_line(line, l);
+ if (l > 0) {
+ char *p;
+@@ -189,7 +189,7 @@
+
+ line = (char *)malloc(n*sizeof(char));;
+ /* getline() is a GNU externsion */
+- while ((l = getline(&line, &n, fp)) > 0) {
++ while ((l = fgets(line, n, fp)) > 0) {
+ l = preprocess_line(line, l);
+ if (l > 0) {
+ char *p;