561f316f27
- don't use the local pcre, but use pcre from ports with tweaks from wilfried@ (pcre and static libs) ok steven@
22 lines
684 B
Plaintext
22 lines
684 B
Plaintext
$OpenBSD: patch-glib_gstrfuncs_c,v 1.5 2007/10/24 22:29:03 jasper Exp $
|
|
--- glib/gstrfuncs.c.orig Sun Sep 16 18:28:33 2007
|
|
+++ glib/gstrfuncs.c Tue Oct 2 20:47:04 2007
|
|
@@ -1308,7 +1308,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;
|
|
@@ -1458,7 +1458,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;
|
|
}
|