gobject-introspection r715 - in trunk: . tools
- From: tko svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r715 - in trunk: . tools
- Date: Wed, 15 Oct 2008 22:07:57 +0000 (UTC)
Author: tko
Date: Wed Oct 15 22:07:57 2008
New Revision: 715
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=715&view=rev
Log:
2008-10-15 Tommi Komulainen <tommi komulainen iki fi>
* tools/generate.c (xml_printf): quote printf arguments so that
we don't generate invalid XML by writing unescaped double quotes
and such in attributes
Modified:
trunk/ChangeLog
trunk/tools/generate.c
Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c (original)
+++ trunk/tools/generate.c Wed Oct 15 22:07:57 2008
@@ -65,9 +65,12 @@
xml_printf (Xml *xml, const char *fmt, ...)
{
va_list ap;
+ char *s;
va_start (ap, fmt);
- vfprintf (xml->file, fmt, ap);
+ s = g_markup_vprintf_escaped (fmt, ap);
+ fputs (s, xml->file);
+ g_free (s);
va_end (ap);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]