openbsd-ports/devel/glib2/patches/patch-glib_gstrfuncs_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

22 lines
686 B
Plaintext

$OpenBSD: patch-glib_gstrfuncs_c,v 1.11 2011/09/20 21:09:34 ajacoutot Exp $
--- glib/gstrfuncs.c.orig Sun Sep 18 08:12:24 2011
+++ glib/gstrfuncs.c Mon Sep 19 23:11:45 2011
@@ -1392,7 +1392,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;
@@ -1556,7 +1556,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;
}