diff options
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/tin/Makefile | 4 | ||||
-rw-r--r-- | chinese/tin/files/patch-page.c | 20 |
2 files changed, 23 insertions, 1 deletions
diff --git a/chinese/tin/Makefile b/chinese/tin/Makefile index aaecf59f22ce..57a750d93afe 100644 --- a/chinese/tin/Makefile +++ b/chinese/tin/Makefile @@ -8,12 +8,14 @@ MASTERDIR= ${.CURDIR}/../../news/tin +PORTREVISION= 1 MAINTAINER= yssu@CCCA.NCTU.edu.tw EXTRA_PATCHES= ${.CURDIR}/files/patch-charset.c \ ${.CURDIR}/files/patch-cook.c \ ${.CURDIR}/files/patch-init.c \ - ${.CURDIR}/files/patch-misc.c + ${.CURDIR}/files/patch-misc.c \ + ${.CURDIR}/files/patch-page.c .include "${MASTERDIR}/Makefile" diff --git a/chinese/tin/files/patch-page.c b/chinese/tin/files/patch-page.c new file mode 100644 index 000000000000..10a7573c152f --- /dev/null +++ b/chinese/tin/files/patch-page.c @@ -0,0 +1,20 @@ +--- src/page.c.orig Wed Feb 21 03:18:52 2001 ++++ src/page.c Thu Apr 19 09:35:25 2001 +@@ -867,7 +867,7 @@ + curr = &artline[curr_line+i]; + fseek (note_fp, curr->offset, SEEK_SET); + +- fgets (buff, cCOLS+1, note_fp); ++ fgets (buff, MAXPATHLEN, note_fp); + + /* + * rotN encoding on body and sig data only +@@ -1186,7 +1186,7 @@ + + make_group_path (CURR_GROUP.name, group_path); + +- switch (art_open (TRUE, &arts[new_respnum], group_path, &pgart)) { ++ switch (art_open (FALSE, &arts[new_respnum], group_path, &pgart)) { + + case ART_UNAVAILABLE: + art_mark_read (&CURR_GROUP, &arts[new_respnum]); |