git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slightly changed patch from SpiderX <spiderx@spiderx.dp.ua> - sgauth.conf
[stg.git]
/
projects
/
sgconf
/
parser.cpp
diff --git
a/projects/sgconf/parser.cpp
b/projects/sgconf/parser.cpp
index 8e1e3cf1fe5c7e4b6fa8595f5b7864658116db14..82b7ca9e5819e3ecb1de1f96c994c28ca67ec9d9 100644
(file)
--- a/
projects/sgconf/parser.cpp
+++ b/
projects/sgconf/parser.cpp
@@
-111,8
+111,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:\n%s\n",
+ printf("Parse error at line %d:\n%s\n",
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
exit(UNKNOWN_ERR_CODE);
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
exit(UNKNOWN_ERR_CODE);