openbsd-ports/devel/glib2/patches/patch-glib_gbacktrace_c

13 lines
423 B
Plaintext

$OpenBSD: patch-glib_gbacktrace_c,v 1.3 2005/11/13 06:22:03 marcm Exp $
--- glib/gbacktrace.c.orig Thu Aug 18 06:08:18 2005
+++ glib/gbacktrace.c Tue Aug 23 21:22:07 2005
@@ -169,7 +169,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;