[xml] xmlIO.c xmlParserInputBufferGrow minor cut and paste error?



This looks like a minor cut and paste error, just gives
wrong routine name when an error is encountered:

xmlIO.c
line 2185 in routine
xmlParserInputBufferGrow(xmlParserInputBufferPtr in, int len)

Currently:
----------
    needSize = in->buffer->use + len + 1;
    if (needSize > in->buffer->size){
        if (!xmlBufferResize(in->buffer, needSize)){
            xmlGenericError(xmlGenericErrorContext,
                    "xmlBufferAdd : out of memory!\n");
            return(0);
        }

Should be:
----------
    needSize = in->buffer->use + len + 1;
    if (needSize > in->buffer->size){
        if (!xmlBufferResize(in->buffer, needSize)){
            xmlGenericError(xmlGenericErrorContext,
                    "xmlParserInputBufferGrow : out of memory!\n");
            return(0);
       
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]