13 lines
423 B
Plaintext
13 lines
423 B
Plaintext
$OpenBSD: patch-glib_gbacktrace_c,v 1.2 2005/05/24 21:26:17 marcm Exp $
|
|
--- glib/gbacktrace.c.orig Tue Jan 18 18:04:32 2005
|
|
+++ glib/gbacktrace.c Fri Apr 15 20:41:44 2005
|
|
@@ -164,7 +164,7 @@ g_on_error_stack_trace (const gchar *prg
|
|
if (!prg_name)
|
|
return;
|
|
|
|
- _g_sprintf (buf, "%u", (guint) getpid ());
|
|
+ _g_snprintf (buf, sizeof(buf), "%u", (guint) getpid ());
|
|
|
|
args[1] = (gchar*) prg_name;
|
|
args[2] = buf;
|