openbsd-ports/devel/glib2/patches/patch-glib_gbacktrace_c
jasper 78a5b821bf update glib2 to 2.12.11
based on diffs by alek@

ok'd by several, "go ahead" steven@
tested by many, thanks!
2007-04-23 16:22:07 +00:00

13 lines
430 B
Plaintext

$OpenBSD: patch-glib_gbacktrace_c,v 1.4 2007/04/23 16:22:07 jasper Exp $
--- glib/gbacktrace.c.orig Fri Mar 9 05:01:39 2007
+++ glib/gbacktrace.c Fri Apr 20 19:02:41 2007
@@ -169,7 +169,7 @@ g_on_error_stack_trace (const gchar *prg_name)
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;