[kaffe] CVS kaffe (robilad): fixed a bug in option handling and added a missing include for openbsd

Kaffe CVS cvs-commits at kaffe.org
Sat Mar 25 13:42:46 PST 2006


PatchSet 7175 
Date: 2006/03/25 21:28:18
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
fixed a bug in option handling and added a missing include for openbsd

2006-03-25  Kurt Miller <truk at optonline.net>

        * kaffe/kaffe/main.c (options): Make sure to terminate
        the newbootcpath string.

        * config/i386/openbsd2/md.c: Added missing include.

Members: 
	ChangeLog:1.4693->1.4694 
	config/i386/openbsd2/md.c:1.2->1.3 
	kaffe/kaffe/main.c:1.97->1.98 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4693 kaffe/ChangeLog:1.4694
--- kaffe/ChangeLog:1.4693	Sat Mar 25 20:58:04 2006
+++ kaffe/ChangeLog	Sat Mar 25 21:28:18 2006
@@ -1,3 +1,10 @@
+2006-03-25  Kurt Miller <truk at optonline.net>
+
+	* kaffe/kaffe/main.c (options): Make sure to terminate
+	the newbootcpath string.
+
+	* config/i386/openbsd2/md.c: Added missing include.
+
 2006-03-25 Alexander Boettcher  <alex at kaffe.org>
 
 	* developers/config4.patch:
Index: kaffe/config/i386/openbsd2/md.c
diff -u kaffe/config/i386/openbsd2/md.c:1.2 kaffe/config/i386/openbsd2/md.c:1.3
--- kaffe/config/i386/openbsd2/md.c:1.2	Thu Mar 23 18:29:24 2006
+++ kaffe/config/i386/openbsd2/md.c	Sat Mar 25 21:28:19 2006
@@ -13,6 +13,7 @@
 #include <pthread.h>
 #include <pthread_np.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 void *mdGetStackEnd(void)
 {
Index: kaffe/kaffe/kaffe/main.c
diff -u kaffe/kaffe/kaffe/main.c:1.97 kaffe/kaffe/kaffe/main.c:1.98
--- kaffe/kaffe/kaffe/main.c:1.97	Mon Dec 26 20:06:33 2005
+++ kaffe/kaffe/kaffe/main.c	Sat Mar 25 21:28:19 2006
@@ -620,6 +620,9 @@
 			  	strcpy(newbootcpath, vmargs.bootClasspath);
 				strcat(newbootcpath, path_separator);
 			}
+			else
+				newbootcpath[0]='\0';
+
 			strcat(newbootcpath, &argv[i][j]);
 
 			/* set the new boot classpath */




More information about the kaffe mailing list