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:
Thomas Fitzsimmons 2005-02-20 04:14:24 +00:00 committed by Thomas Fitzsimmons
parent d1e982cdd9
commit 9f9348d75a
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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);
}