From owner-freebsd-ports Wed Aug 8 2: 0:17 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B9D237B41A for ; Wed, 8 Aug 2001 02:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f78902s90160; Wed, 8 Aug 2001 02:00:02 -0700 (PDT) (envelope-from gnats) Received: from ms1.me.nctu.edu.tw (unknown [140.113.158.10]) by hub.freebsd.org (Postfix) with ESMTP id 39C2337B40B for ; Wed, 8 Aug 2001 01:59:38 -0700 (PDT) (envelope-from shuo@me.nctu.edu.tw) Received: by ms1.me.nctu.edu.tw (Postfix, from userid 1001) id 9C86F3297A; Wed, 8 Aug 2001 16:59:33 +0800 (CST) Message-Id: <20010808085933.9C86F3297A@ms1.me.nctu.edu.tw> Date: Wed, 8 Aug 2001 16:59:33 +0800 (CST) From: yssu@CCCA.NCTU.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/29539: ports/chinese/tin: modify patch file for src/page.c Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29539 >Category: ports >Synopsis: ports/chinese/tin: modify patch file for src/page.c >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 08 02:00:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Yen-Shuo Su >Release: FreeBSD 4.3-STABLE i386 >Organization: Campus Computer Communication Association >Environment: System: FreeBSD ms1.me.nctu.edu.tw 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon May 28 21:29:49 CST 2001 root@ms1.me.nctu.edu.tw:/usr/src/sys/compile/MAILSERVER i386 >Description: Patch file for src/page.c cant match the source file >How-To-Repeat: Cannot finish patch procedure. >Fix: Use the following patch file for files/patch-page.c *** src/page.c.orig Mon Jul 23 18:14:53 2001 --- src/page.c Wed Aug 8 16:45:49 2001 *************** *** 838,845 **** fseek (file, curr->offset, SEEK_SET); if ((line = tin_fgets (file, FALSE)) == NULL) break; /* ran out of message */ ! if ((int) strlen(line) >= cCOLS) ! line[cCOLS] = '\0'; /* * rotN encoding on body and sig data only --- 838,845 ---- fseek (file, curr->offset, SEEK_SET); if ((line = tin_fgets (file, FALSE)) == NULL) break; /* ran out of message */ ! if ((int) strlen(line) >= LEN) ! line[LEN] = '\0'; /* * rotN encoding on body and sig data only *************** *** 858,864 **** strip_line(line); #ifndef USE_CURSES ! snprintf (screen[i + scroll_region_top].col, cCOLS, "%s" cCRLF, line); #endif /* !USE_CURSES */ MoveCursor (i + scroll_region_top, 0); --- 858,864 ---- strip_line(line); #ifndef USE_CURSES ! snprintf (screen[i + scroll_region_top].col, LEN, "%s" cCRLF, line); #endif /* !USE_CURSES */ MoveCursor (i + scroll_region_top, 0); *************** *** 918,924 **** search_line = curr_line; /* Reset search to start from top of display */ ! buff = my_malloc(cCOLS + 1); /* Need to account for \n */ if (part == 0) { ClearScreen(); --- 918,924 ---- search_line = curr_line; /* Reset search to start from top of display */ ! buff = my_malloc(LEN + 1); /* Need to account for \n */ if (part == 0) { ClearScreen(); *************** *** 1364,1370 **** chunk += 50; pgart.rawl = my_realloc((char *) pgart.rawl, sizeof(t_lineinfo) * chunk); } ! } while ((fgets(buff, cCOLS + 1, pgart.raw)) != NULL); j--; pgart.rawl = my_realloc((char *) pgart.rawl, sizeof(t_lineinfo) * j); --- 1364,1370 ---- chunk += 50; pgart.rawl = my_realloc((char *) pgart.rawl, sizeof(t_lineinfo) * chunk); } ! } while ((fgets(buff, LEN + 1, pgart.raw)) != NULL); 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