diff --git a/SAX/wrappers/saxlibxml2.cpp b/SAX/wrappers/saxlibxml2.cpp index 3c71b1e3..59ed5425 100644 --- a/SAX/wrappers/saxlibxml2.cpp +++ b/SAX/wrappers/saxlibxml2.cpp @@ -17,7 +17,7 @@ namespace libxml2_wrapper_impl_tiddle std::string formatErrorMsg(const char* fmt, va_list arg) { - char buff[1024]; + char buff[4096]; vsprintf(buff, fmt, arg); return std::string(buff); } // formatErrorMsg diff --git a/SAX/wrappers/saxlibxml2.h b/SAX/wrappers/saxlibxml2.h index 0456c567..db744fed 100644 --- a/SAX/wrappers/saxlibxml2.h +++ b/SAX/wrappers/saxlibxml2.h @@ -433,7 +433,7 @@ void libxml2_wrapper::parse(basic_InputSource while(!is.resolve()->eof()) { - char buffer[1024]; + char buffer[4096]; is.resolve()->read(buffer, sizeof(buffer)); xmlParseChunk(context_, buffer, is.resolve()->gcount(), is.resolve()->eof()); } // while(!in.eof())