Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Aug 2001 16:59:33 +0800 (CST)
From:      yssu@CCCA.NCTU.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29539: ports/chinese/tin: modify patch file for src/page.c
Message-ID:  <20010808085933.9C86F3297A@ms1.me.nctu.edu.tw>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010808085933.9C86F3297A>