]> git.stg.codes - stg.git/blobdiff - projects/sgconf/parser.cpp
Implemented transcoders for some getters.
[stg.git] / projects / sgconf / parser.cpp
index 990a2971525e24c03a1150161804a002b27cb403..82b7ca9e5819e3ecb1de1f96c994c28ca67ec9d9 100644 (file)
@@ -33,9 +33,9 @@
 #include <string>
 #include <list>
 
 #include <string>
 #include <list>
 
-#include "common.h"
-#include "netunit.h"
-#include "request.h"
+#include "stg/common.h"
+#include "stg/netunit.h"
+#include "stg/request.h"
 
 using namespace std;
 
 
 using namespace std;
 
@@ -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);