openbsd-ports/devel/glib2/patches/patch-glib_gstrfuncs_c
jasper c4e5ffbc2f - update glib2 to 2.16.1
lots of changes, most importantly, the addition of GIO (VFS API to replace
GnomeVFS).

testing and feedback by many, thanks!

ok landry@ merdely@ simon@
"go ahead" bernd@ steven@

(diffs to unbreak some ports will follow)
2008-04-09 13:10:17 +00:00

22 lines
684 B
Plaintext

$OpenBSD: patch-glib_gstrfuncs_c,v 1.7 2008/04/09 13:10:17 jasper Exp $
--- glib/gstrfuncs.c.orig Mon Feb 11 18:14:22 2008
+++ glib/gstrfuncs.c Fri Feb 22 11:40:05 2008
@@ -1311,7 +1311,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;
@@ -1461,7 +1461,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;
}