increased buffer sizes

This commit is contained in:
jez_higgins 2005-12-02 17:04:56 +00:00
parent 7bcc01a51e
commit 80617d400a
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ namespace libxml2_wrapper_impl_tiddle
std::string formatErrorMsg(const char* fmt, va_list arg) std::string formatErrorMsg(const char* fmt, va_list arg)
{ {
char buff[1024]; char buff[4096];
vsprintf(buff, fmt, arg); vsprintf(buff, fmt, arg);
return std::string(buff); return std::string(buff);
} // formatErrorMsg } // formatErrorMsg

View file

@ -433,7 +433,7 @@ void libxml2_wrapper<stringT, string_adaptorT>::parse(basic_InputSource<stringT>
while(!is.resolve()->eof()) while(!is.resolve()->eof())
{ {
char buffer[1024]; char buffer[4096];
is.resolve()->read(buffer, sizeof(buffer)); is.resolve()->read(buffer, sizeof(buffer));
xmlParseChunk(context_, buffer, is.resolve()->gcount(), is.resolve()->eof()); xmlParseChunk(context_, buffer, is.resolve()->gcount(), is.resolve()->eof());
} // while(!in.eof()) } // while(!in.eof())