$OpenBSD: patch-glib_gbacktrace_c,v 1.6 2010/09/30 07:17:19 ajacoutot Exp $
--- glib/gbacktrace.c.orig	Mon Sep 13 17:57:51 2010
+++ glib/gbacktrace.c	Mon Sep 27 14:42:36 2010
@@ -172,7 +172,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;
