X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/09c44c9a7e8c870e07827b3fc34811cd917b6115..1dd842650e8b3bdf5e80dcfe98e484556386e3fa:/projects/sgconf_xml/parser.cpp diff --git a/projects/sgconf_xml/parser.cpp b/projects/sgconf_xml/parser.cpp index df18975e..f2d5993b 100644 --- a/projects/sgconf_xml/parser.cpp +++ b/projects/sgconf_xml/parser.cpp @@ -3,8 +3,8 @@ #include #include -#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;