Hi list,
I just merged the attached patch from GCC trunk branch. For GCC this
fixed a compiler warning but this warning doesnt happened for classpath.
I wonder why ...
Michael
2005-02-22 Thomas Fitzsimmons <[EMAIL PROTECTED]>
* native/jni/gtk-peer/gthread-jni.c (throw):
Call g_snprintf instead of snprintf.
Index: native/jni/gtk-peer/gthread-jni.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/gtk-peer/gthread-jni.c,v
retrieving revision 1.17
diff -u -r1.17 gthread-jni.c
--- native/jni/gtk-peer/gthread-jni.c 9 Aug 2004 23:00:21 -0000 1.17
+++ native/jni/gtk-peer/gthread-jni.c 22 Feb 2005 07:56:48 -0000
@@ -223,8 +223,8 @@
#elif defined HAVE_INTTYPES_H
#include <inttypes.h>
#endif
-#include <stdio.h> /* snprintf */
#include <stdarg.h> /* va_list */
+#include <glib.h>
#include "gthread-jni.h"
#include <assert.h> /* assert() */
@@ -464,7 +464,7 @@
if ((buf = malloc (len)))
{
memset (buf, 0, len);
- snprintf (buf, len, fmt, message, file, line);
+ g_snprintf (buf, len, fmt, message, file, line);
jmessage = (*env)->NewStringUTF (env, buf);
free (buf);
}
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches