]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/parser.cpp
Moved CHG_USER and SEND_MESSAGE parsers from global scope.
[stg.git] / projects / sgconf_xml / parser.cpp
index 99b48a7b19d865fdef5299e3d1519f50ad278bda..f2d5993bb9bf2fa86eaf21178e8056c539248a9c 100644 (file)
@@ -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;