mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-11 22:11:47 +08:00
gthread-jni.c (throw): Call g_snprintf instead of snprintf.
2005-02-19 Thomas Fitzsimmons <fitzsim@redhat.com> * jni/gtk-peer/gthread-jni.c (throw): Call g_snprintf instead of snprintf. From-SVN: r95298
This commit is contained in:
parent
d1e982cdd9
commit
9f9348d75a
@ -1,3 +1,8 @@
|
||||
2005-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* jni/gtk-peer/gthread-jni.c (throw): Call g_snprintf instead of
|
||||
snprintf.
|
||||
|
||||
2005-02-19 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* Makefile.am: Added new files in gnu/java/beans and
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user