[kaffe] CVS kaffe (robilad): Fixed remaining pscan warnings

Kaffe CVS cvs-commits at kaffe.org
Mon Apr 3 17:13:52 PDT 2006


PatchSet 7211 
Date: 2006/04/04 00:05:11
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed remaining pscan warnings

2006-04-03  Dalibor Topic  <robilad at kaffe.org>

        * kaffe/kaffevm/boehm-gc/boehm/cord/de.c,
        libraries/clib/target/generic/target_generic.h,
        libraries/clib/target/generic/target_generic_misc.h:
        Fixed remaining pscan warnings.

Members: 
	ChangeLog:1.4718->1.4719 
	kaffe/kaffevm/boehm-gc/boehm/cord/de.c:1.2->1.3 
	libraries/clib/target/generic/target_generic.h:1.1->1.2 
	libraries/clib/target/generic/target_generic_misc.h:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4718 kaffe/ChangeLog:1.4719
--- kaffe/ChangeLog:1.4718	Mon Apr  3 22:30:23 2006
+++ kaffe/ChangeLog	Tue Apr  4 00:05:11 2006
@@ -1,5 +1,12 @@
 2006-04-03  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/boehm-gc/boehm/cord/de.c,
+	libraries/clib/target/generic/target_generic.h,
+	libraries/clib/target/generic/target_generic_misc.h:
+	Fixed remaining pscan warnings.
+
+2006-04-03  Dalibor Topic  <robilad at kaffe.org>
+
 	* THIRDPARTY: Updated fastjar to gcc 4.1.0.
 
 	* external/gcc/fastjar: Updated to 4.1.0.
Index: kaffe/kaffe/kaffevm/boehm-gc/boehm/cord/de.c
diff -u kaffe/kaffe/kaffevm/boehm-gc/boehm/cord/de.c:1.2 kaffe/kaffe/kaffevm/boehm-gc/boehm/cord/de.c:1.3
--- kaffe/kaffe/kaffevm/boehm-gc/boehm/cord/de.c:1.2	Mon Aug  2 10:44:59 2004
+++ kaffe/kaffe/kaffevm/boehm-gc/boehm/cord/de.c	Tue Apr  4 00:05:15 2006
@@ -61,12 +61,12 @@
 #	define standend() cinverse(0, stdout)
 #	define move(line,col) cgotoxy(col + 1, line + 1, stdout)
 #	define clrtoeol() ccleol(stdout)
-#	define de_error(s) { fprintf(stderr, s); getchar(); }
+#	define de_error(s) { fprintf(stderr, "%s", s); getchar(); }
 #	define LINES 25
 #	define COLS 80
 #else
 #  include <curses.h>
-#  define de_error(s) { fprintf(stderr, s); sleep(2); }
+#  define de_error(s) { fprintf(stderr, "%s", s); sleep(2); }
 #endif
 #include "de_cmds.h"
 
Index: kaffe/libraries/clib/target/generic/target_generic.h
diff -u kaffe/libraries/clib/target/generic/target_generic.h:1.1 kaffe/libraries/clib/target/generic/target_generic.h:1.2
--- kaffe/libraries/clib/target/generic/target_generic.h:1.1	Tue Jul 19 01:16:37 2005
+++ kaffe/libraries/clib/target/generic/target_generic.h	Tue Apr  4 00:05:16 2006
@@ -148,7 +148,7 @@
   #include <errno.h>
   #define TARGET_NATIVE_LAST_ERROR_STRING_FORMAT(buffer,bufferSize,format) \
     do { \
-      sprintf(buffer,format); \
+      sprintf(buffer, "%s", format); \
       strcat(" (error: "); \
       strcat(strerror(errno)); \
       strcat(")"); \
Index: kaffe/libraries/clib/target/generic/target_generic_misc.h
diff -u kaffe/libraries/clib/target/generic/target_generic_misc.h:1.1 kaffe/libraries/clib/target/generic/target_generic_misc.h:1.2
--- kaffe/libraries/clib/target/generic/target_generic_misc.h:1.1	Tue Jul 19 01:16:37 2005
+++ kaffe/libraries/clib/target/generic/target_generic_misc.h	Tue Apr  4 00:05:16 2006
@@ -90,7 +90,7 @@
   #include <stdarg.h>
   #define TARGET_NATIVE_MISC_FORMAT_STRING0(buffer,bufferSize,format) \
     do { \
-      snprintf(buffer,bufferSize,format); \
+      snprintf(buffer,bufferSize, "%s", format); \
     } while (0)
 #endif
 #ifndef TARGET_NATIVE_MISC_FORMAT_STRING1




More information about the kaffe mailing list