openbsd-ports/devel/glib2/patches/patch-glib_gstrfuncs_c
ajacoutot 1d7f915015 - major update to glib2-2.20.4
- add missing REGRESS_DEPENDS

*remove previous version before trying to compile this*

Report any failure directly to me please.

tested by landry@ on a sparc64 bulk, thanks!
ok jasper@ on a previous diff
2009-07-12 20:38:09 +00:00

22 lines
687 B
Plaintext

$OpenBSD: patch-glib_gstrfuncs_c,v 1.9 2009/07/12 20:38:09 ajacoutot Exp $
--- glib/gstrfuncs.c.orig Wed Apr 1 01:04:20 2009
+++ glib/gstrfuncs.c Thu Jun 11 14:15:29 2009
@@ -1381,7 +1381,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;
@@ -1545,7 +1545,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;
}