Date: Mon, 30 Apr 2001 03:46:02 +0800 (CST) From: leeym@cae.ce.ntu.edu.tw To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26961: update port: chinese/tin Message-ID: <200104291946.f3TJk2i28835@utopia.leeym.com>
next in thread | raw e-mail | index | archive | help
>Number: 26961 >Category: ports >Synopsis: update port: chinese/tin >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 29 12:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD utopia.leeym.com 4.3-STABLE FreeBSD 4.3-STABLE #0: Sun Apr 29 05:39:46 CST 2001 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386 >Description: disable wrap_lines in put_cooked(). enlarge buffer size for extra-long line. >How-To-Repeat: >Fix: diff -ruN /usr/ports/chinese/tin/Makefile tin/Makefile --- /usr/ports/chinese/tin/Makefile Sun Apr 29 01:16:07 2001 +++ tin/Makefile Mon Apr 30 03:37:08 2001 @@ -8,7 +8,7 @@ MASTERDIR= ${.CURDIR}/../../news/tin -PORTREVISION= 1 +PORTREVISION= 2 MAINTAINER= yssu@CCCA.NCTU.edu.tw EXTRA_PATCHES= ${.CURDIR}/files/patch-charset.c \ diff -ruN /usr/ports/chinese/tin/files/patch-cook.c tin/files/patch-cook.c --- /usr/ports/chinese/tin/files/patch-cook.c Sun Sep 24 12:37:05 2000 +++ tin/files/patch-cook.c Mon Apr 30 02:57:47 2001 @@ -1,5 +1,5 @@ ---- src/cook.c.orig Sat Sep 23 14:34:20 2000 -+++ src/cook.c Sat Sep 23 14:34:41 2000 +--- src/cook.c.orig Mon Feb 19 22:59:13 2001 ++++ src/cook.c Mon Apr 30 02:57:21 2001 @@ -109,7 +109,7 @@ while (i++ < j) *q++ = ' '; @@ -9,3 +9,11 @@ *q++ = '^'; *q++ = ((*p) & 0xFF) + '@'; if (*p == '\f') /* ^L detected */ +@@ -147,6 +147,7 @@ + vsnprintf (buf, sizeof(buf) - 1, fmt, ap); + + bufp = buf; ++ wrap_lines = FALSE; + + for (p = bufp; *p; p++) { + if (*p == '\n' || ((overflow + p - bufp >= cCOLS) && wrap_lines)) { diff -ruN /usr/ports/chinese/tin/files/patch-page.c tin/files/patch-page.c --- /usr/ports/chinese/tin/files/patch-page.c Mon Apr 30 00:50:33 2001 +++ tin/files/patch-page.c Mon Apr 30 03:29:03 2001 @@ -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, LEN, 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); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104291946.f3TJk2i28835>