2007-04-23 12:22:07 -04:00
|
|
|
$OpenBSD: patch-glib_gprintf_c,v 1.3 2007/04/23 16:22:07 jasper Exp $
|
|
|
|
--- glib/gprintf.c.orig Fri Mar 9 05:01:39 2007
|
|
|
|
+++ glib/gprintf.c Fri Apr 20 19:02:41 2007
|
|
|
|
@@ -87,6 +87,8 @@ g_fprintf (FILE *file,
|
2005-04-14 13:06:18 -04:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
+__warn_references(g_sprintf,
|
|
|
|
+ "warning: g_sprintf() is often misused, please use g_snprintf()");
|
|
|
|
/**
|
|
|
|
* g_sprintf:
|
|
|
|
* @string: the buffer to hold the output.
|
2007-04-23 12:22:07 -04:00
|
|
|
@@ -208,6 +210,8 @@ g_vfprintf (FILE *file,
|
2005-04-14 13:06:18 -04:00
|
|
|
return _g_vfprintf (file, format, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
+__warn_references(g_vsprintf,
|
|
|
|
+ "warning: g_vsprintf() is often misused, please use g_vsnprintf()");
|
|
|
|
/**
|
|
|
|
* g_vsprintf:
|
|
|
|
* @string: the buffer to hold the output.
|