openbsd-ports/devel/glib2/patches/patch-glib_gstrfuncs_c

22 lines
686 B
Plaintext
Raw Normal View History

$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;
}