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
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2005-02-19 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* Makefile.am: Added new files in gnu/java/beans and
|
* Makefile.am: Added new files in gnu/java/beans and
|
||||||
|
|
|
@ -223,8 +223,8 @@ exception statement from your version. */
|
||||||
#elif defined HAVE_INTTYPES_H
|
#elif defined HAVE_INTTYPES_H
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h> /* snprintf */
|
|
||||||
#include <stdarg.h> /* va_list */
|
#include <stdarg.h> /* va_list */
|
||||||
|
#include <glib.h>
|
||||||
#include "gthread-jni.h"
|
#include "gthread-jni.h"
|
||||||
#include <assert.h> /* assert() */
|
#include <assert.h> /* assert() */
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ throw (JNIEnv * env, jthrowable cause, const char *message,
|
||||||
if ((buf = malloc (len)))
|
if ((buf = malloc (len)))
|
||||||
{
|
{
|
||||||
memset (buf, 0, 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);
|
jmessage = (*env)->NewStringUTF (env, buf);
|
||||||
free (buf);
|
free (buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue