X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/09c44c9a7e8c870e07827b3fc34811cd917b6115..8d7e73beecd0d372eb59ad74bf60e25f67013201:/projects/sgconf_xml/parser.cpp?ds=inline 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;