[commit] r2159 - trunk/GME/Parser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Mar 1 10:06:25 CST 2013
Author: ksmyth
Date: Fri Mar 1 10:06:24 2013
New Revision: 2159
Log:
XML error may contain %s et al, sprintf as-is
Modified:
trunk/GME/Parser/MetaParser.cpp
trunk/GME/Parser/MgaParser.cpp
trunk/GME/Parser/MgaParserBC.cpp
trunk/GME/Parser/MgaParserSC.cpp
Modified: trunk/GME/Parser/MetaParser.cpp
==============================================================================
--- trunk/GME/Parser/MetaParser.cpp Fri Mar 1 10:05:52 2013 (r2158)
+++ trunk/GME/Parser/MetaParser.cpp Fri Mar 1 10:06:24 2013 (r2159)
@@ -96,7 +96,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
COMTHROW( metaproject->CommitTransaction() );
Modified: trunk/GME/Parser/MgaParser.cpp
==============================================================================
--- trunk/GME/Parser/MgaParser.cpp Fri Mar 1 10:05:52 2013 (r2158)
+++ trunk/GME/Parser/MgaParser.cpp Fri Mar 1 10:06:24 2013 (r2159)
@@ -119,7 +119,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
COMTHROW( project->put_Preferences(project_prefs_orig) );
@@ -279,7 +279,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
COMTHROW( project->put_Preferences(project_prefs_orig) );
@@ -396,7 +396,7 @@
XmlStr msg = e.getMessage();
if (msg != magic_exit_str)
{
- ThrowXmlError(msg.c_str());
+ ThrowXmlError(L"%s", msg.c_str());
}
// else just ignore it, we threw an exception for a good purpose:
// to quit the costly parsing operation
@@ -405,7 +405,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
CloseAll();
@@ -1831,7 +1831,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
CloseAll();
Modified: trunk/GME/Parser/MgaParserBC.cpp
==============================================================================
--- trunk/GME/Parser/MgaParserBC.cpp Fri Mar 1 10:05:52 2013 (r2158)
+++ trunk/GME/Parser/MgaParserBC.cpp Fri Mar 1 10:06:24 2013 (r2159)
@@ -122,7 +122,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
COMTHROW( project->put_Preferences(project_prefs_orig) );
Modified: trunk/GME/Parser/MgaParserSC.cpp
==============================================================================
--- trunk/GME/Parser/MgaParserSC.cpp Fri Mar 1 10:05:52 2013 (r2158)
+++ trunk/GME/Parser/MgaParserSC.cpp Fri Mar 1 10:06:24 2013 (r2159)
@@ -125,7 +125,7 @@
{
XmlStr desc(e.getMessage());
- ThrowXmlError(desc.c_str());
+ ThrowXmlError(L"%s", desc.c_str());
}
COMTHROW( project->put_Preferences(project_prefs_orig) );
More information about the gme-commit
mailing list