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

22 lines
683 B
Plaintext

$OpenBSD: patch-glib_gstrfuncs_c,v 1.2 2005/05/24 21:26:17 marcm Exp $
--- glib/gstrfuncs.c.orig Sun Mar 13 20:02:07 2005
+++ glib/gstrfuncs.c Sat Apr 16 19:13:32 2005
@@ -1206,7 +1206,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;
@@ -1356,7 +1356,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;
}