78a5b821bf
based on diffs by alek@ ok'd by several, "go ahead" steven@ tested by many, thanks!
22 lines
684 B
Plaintext
22 lines
684 B
Plaintext
$OpenBSD: patch-glib_gstrfuncs_c,v 1.4 2007/04/23 16:22:07 jasper Exp $
|
|
--- glib/gstrfuncs.c.orig Fri Mar 9 05:01:39 2007
|
|
+++ glib/gstrfuncs.c Fri Apr 20 19:02:41 2007
|
|
@@ -1280,7 +1280,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;
|
|
@@ -1430,7 +1430,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;
|
|
}
|