diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-20 04:14:24 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-20 04:14:24 +0000 |
commit | 102b6538abc58c07877d2b9477268df4f72ca9eb (patch) | |
tree | a76ec6d87b98b1a4c5d228e53bec913b9272a4a9 /libjava/jni | |
parent | 449f94446156dce483d64a865847dc44302a79dd (diff) | |
download | gcc-102b6538abc58c07877d2b9477268df4f72ca9eb.tar.gz |
2005-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gthread-jni.c (throw): Call g_snprintf instead of
snprintf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95298 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gthread-jni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/jni/gtk-peer/gthread-jni.c b/libjava/jni/gtk-peer/gthread-jni.c index ee79424475c..d66c5a08087 100644 --- a/libjava/jni/gtk-peer/gthread-jni.c +++ b/libjava/jni/gtk-peer/gthread-jni.c @@ -223,8 +223,8 @@ exception statement from your version. */ #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 @@ throw (JNIEnv * env, jthrowable cause, const char *message, 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); } |