openbsd-ports/devel/glib2/patches/patch-glib_gbacktrace_c
ajacoutot d5e540e2e4 Update to glib2-2.29.92 (2.30 coming in the next few days).
Committing now (along with upcoming atk, pango and gtk+3 updates) during
the hackathon where we have time to fix all the eventual fallout (bulk
running).

ok jasper@ robert@
2011-09-20 21:09:34 +00:00

13 lines
433 B
Plaintext

$OpenBSD: patch-glib_gbacktrace_c,v 1.7 2011/09/20 21:09:34 ajacoutot Exp $
--- glib/gbacktrace.c.orig Fri Sep 9 21:58:10 2011
+++ glib/gbacktrace.c Mon Sep 19 23:11:45 2011
@@ -235,7 +235,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;