openbsd-ports/devel/glib2/patches/patch-glib_gprintf_c
jasper 561f316f27 - update glib2 to 2.14.2
- don't use the local pcre, but use pcre from ports

with tweaks from wilfried@ (pcre and static libs)
ok steven@
2007-10-24 22:29:02 +00:00

22 lines
706 B
Plaintext

$OpenBSD: patch-glib_gprintf_c,v 1.4 2007/10/24 22:29:03 jasper Exp $
--- glib/gprintf.c.orig Sun Sep 16 18:28:33 2007
+++ glib/gprintf.c Tue Oct 2 20:47:04 2007
@@ -87,6 +87,8 @@ g_fprintf (FILE *file,
return retval;
}
+__warn_references(g_sprintf,
+ "warning: g_sprintf() is often misused, please use g_snprintf()");
/**
* g_sprintf:
* @string: A pointer to a memory buffer to contain the resulting string. It
@@ -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.