diff options
Diffstat (limited to 'chinese/tin/files/patch-page.c')
-rw-r--r-- | chinese/tin/files/patch-page.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/chinese/tin/files/patch-page.c b/chinese/tin/files/patch-page.c index 10a7573c152f..c2e969bf5a3f 100644 --- a/chinese/tin/files/patch-page.c +++ b/chinese/tin/files/patch-page.c @@ -1,20 +1,38 @@ --- src/page.c.orig Wed Feb 21 03:18:52 2001 -+++ src/page.c Thu Apr 19 09:35:25 2001 ++++ src/page.c Mon Apr 30 03:28:06 2001 +@@ -844,7 +844,7 @@ + + search_line = curr_line; /* Reset search to start from top of display */ + +- buff = my_malloc(cCOLS+1); /* Need to account for \n */ ++ buff = my_malloc(LEN+1); /* Need to account for \n */ + + if (part == 0) { + ClearScreen(); @@ -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); ++ fgets (buff, LEN+1, note_fp); /* * rotN encoding on body and sig data only -@@ -1186,7 +1186,7 @@ +@@ -886,7 +886,7 @@ + strip_line(buff); - make_group_path (CURR_GROUP.name, group_path); + #ifndef USE_CURSES +- snprintf (screen[i+PAGE_HEADER].col, cCOLS, "%s" cCRLF, buff); ++ snprintf (screen[i+PAGE_HEADER].col, LEN, "%s" cCRLF, buff); + #endif /* !USE_CURSES */ -- switch (art_open (TRUE, &arts[new_respnum], group_path, &pgart)) { -+ switch (art_open (FALSE, &arts[new_respnum], group_path, &pgart)) { + MoveCursor (i+PAGE_HEADER, 0); +@@ -1346,7 +1346,7 @@ + chunk += 50; + pgart.rawl = my_realloc((char *)pgart.rawl, sizeof(t_lineinfo) * chunk); + } +- } while ((fgets(buff, cCOLS+1, pgart.raw)) != NULL); ++ } while ((fgets(buff, LEN+1, pgart.raw)) != NULL); - case ART_UNAVAILABLE: - art_mark_read (&CURR_GROUP, &arts[new_respnum]); + j--; + pgart.rawl = my_realloc((char *)pgart.rawl, sizeof(t_lineinfo) * j); |