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

22 lines
670 B
Plaintext

$OpenBSD: patch-glib_gprintf_c,v 1.2 2005/05/24 21:26:17 marcm Exp $
--- glib/gprintf.c.orig Sun Mar 13 20:02:07 2005
+++ glib/gprintf.c Sat Apr 16 19:13:32 2005
@@ -89,6 +89,8 @@ g_fprintf (FILE *file,
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.
@@ -210,6 +212,8 @@ g_vfprintf (FILE *file,
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.