|
From: <sv...@va...> - 2010-07-23 17:03:33
|
Author: sewardj
Date: 2010-07-23 18:03:22 +0100 (Fri, 23 Jul 2010)
New Revision: 11227
Log:
In XML mode, properly escape test strings in the preamble.
Fixes #244923. (Zhu...@hu...)
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2010-07-22 22:36:43 UTC (rev 11226)
+++ trunk/coregrind/m_main.c 2010-07-23 17:03:22 UTC (rev 11227)
@@ -1027,7 +1027,7 @@
VG_(printf_xml)("<preamble>\n");
/* Tool details */
- umsg_or_xml( "%s%s%s%s, %s%s\n",
+ umsg_or_xml( VG_(clo_xml) ? "%s%t%t%t, %t%s\n" : "%s%s%s%s, %s%s\n",
xpre,
VG_(details).name,
NULL == VG_(details).version ? "" : "-",
@@ -1043,7 +1043,8 @@
);
}
- umsg_or_xml("%s%s%s\n", xpre, VG_(details).copyright_author, xpost);
+ umsg_or_xml( VG_(clo_xml) ? "%s%t%s\n" : "%s%s%s\n",
+ xpre, VG_(details).copyright_author, xpost );
/* Core details */
umsg_or_xml(
|