kaffeh bug

Archie Cobbs archie at whistle.com
Wed Jan 21 12:45:30 PST 1998


Not sure if this bug has been reported before, but there is a bug
in kaffeh which causes a screwup if -base and -d are used at the
same time. The patch below fixes it.

Thanks,
-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

--- ../../kaffe-0.9.2/kaffe/kaffeh/main.c	Sat Oct  4 03:26:55 1997
+++ kaffe/kaffeh/main.c	Wed Jan 21 12:35:44 1998
@@ -130,11 +130,13 @@
 			strcpy(tmpName, stubName);
 			strcpy(stubName, directoryName);
 			stubName[dirLen] = PATH_SEP_CHAR;
+			stubName[dirLen + 1] = 0;
 			strcat(stubName, tmpName);
 
 			strcpy(tmpName, includeName);
 			strcpy(includeName, directoryName);
 			includeName[dirLen] = PATH_SEP_CHAR;
+			includeName[dirLen + 1] = 0;
 			strcat(includeName, tmpName);
 		}
 



More information about the kaffe mailing list