]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/parser.cpp
Ticket 37. The construction if-else removed and ReadString() changed to
[stg.git] / projects / sgconf_xml / parser.cpp
index df18975eb8108e3ca4e4bc11daed92857b2d8cac..f2d5993bb9bf2fa86eaf21178e8056c539248a9c 100644 (file)
@@ -3,8 +3,8 @@
 #include <expat.h>
 #include <string.h>
 
-#include "common.h"
-#include "netunit.h"
+#include "stg/common.h"
+#include "stg/netunit.h"
 #include "request.h"
 
 int parse_depth = 0;
@@ -166,8 +166,7 @@ while (n != ans->end())
 
     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;