$OpenBSD: patch-glib_gstrfuncs_c,v 1.7 2008/04/09 13:10:17 jasper Exp $ --- glib/gstrfuncs.c.orig Mon Feb 11 18:14:22 2008 +++ glib/gstrfuncs.c Fri Feb 22 11:40:05 2008 @@ -1311,7 +1311,7 @@ g_strerror (gint errnum) g_static_private_set (&msg_private, msg, g_free); } - _g_sprintf (msg, "unknown error (%d)", errnum); + _g_snprintf (msg, 64, "unknown error (%d)", errnum); errno = saved_errno; return msg; @@ -1461,7 +1461,7 @@ extern const char *strsignal(int); g_static_private_set (&msg_private, msg, g_free); } - _g_sprintf (msg, "unknown signal (%d)", signum); + _g_snprintf (msg, 64, "unknown signal (%d)", signum); return msg; }