rpms/cscope/FC-5 cscope-15.5-inv-overflow.patch, NONE, 1.1 cscope.spec, 1.21, 1.22

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 21 14:47:28 UTC 2006


Author: nhorman

Update of /cvs/dist/rpms/cscope/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv10966

Modified Files:
	cscope.spec 
Added Files:
	cscope-15.5-inv-overflow.patch 
Log Message:
updating FC 5 cscope with inverted index overflow patch

cscope-15.5-inv-overflow.patch:
 invlib.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE cscope-15.5-inv-overflow.patch ---
--- cscope-15.5/src/invlib.c.overflow	2003-06-20 03:46:03.000000000 -0400
+++ cscope-15.5/src/invlib.c	2006-04-21 10:28:06.000000000 -0400
@@ -47,7 +47,6 @@
 
 #define	DEBUG		0	/* debugging code and realloc messages */
 #define BLOCKSIZE	2 * BUFSIZ	/* logical block size */
-#define	LINEMAX		1000	/* sorted posting line max size */
 #define	POSTINC		10000	/* posting buffer size increment */
 #define SEP		' '	/* sorted posting field separator */
 #define	SETINC		100	/* posting set size increment */
@@ -112,7 +111,7 @@
 	long	fileindex = 0;	/* initialze, to avoid warning */
 	unsigned postsize = POSTINC * sizeof(POSTING);
 	unsigned long	*intptr;
-	char	line[LINEMAX];
+	char	line[TERMMAX];
 	long	tlong;
 	PARAM	param;
 	POSTING	posting;
@@ -177,7 +176,7 @@
 	lastinblk = sizeof(t_logicalblk);
 
 	/* now loop as long as more to read (till eof)  */
-	while (fgets(line, LINEMAX, infile) != NULL) {
+	while (fgets(line, TERMMAX, infile) != NULL) {
 #if DEBUG || STATS
 		++totpost;
 #endif


Index: cscope.spec
===================================================================
RCS file: /cvs/dist/rpms/cscope/FC-5/cscope.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- cscope.spec	11 Feb 2006 02:20:45 -0000	1.21
+++ cscope.spec	21 Apr 2006 14:47:26 -0000	1.22
@@ -20,6 +20,7 @@
 Patch4:cscope-15.5-inverted.patch
 Patch5:cscope-15.5-resize.patch
 Patch6:cscope-15.5-tempsec.patch
+Patch7:cscope-15.5-inv-overflow.patch
 
 %description
 cscope is a mature, ncurses based, C source code tree browsing tool.  It 
@@ -37,6 +38,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 %configure




More information about the fedora-cvs-commits mailing list