git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed formatting.
[stg.git]
/
projects
/
sgconf_xml
/
parser.cpp
diff --git
a/projects/sgconf_xml/parser.cpp
b/projects/sgconf_xml/parser.cpp
index 99b48a7b19d865fdef5299e3d1519f50ad278bda..f2d5993bb9bf2fa86eaf21178e8056c539248a9c 100644
(file)
--- a/
projects/sgconf_xml/parser.cpp
+++ b/
projects/sgconf_xml/parser.cpp
@@
-166,8
+166,7
@@
while (n != ans->end())
if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR)
{
if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR)
{
- char s[128];
- printf(s, "Parse error at line %d: %s",
+ printf("Parse error at line %d: %s",
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
return st_xml_parse_error;
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
return st_xml_parse_error;