Index: third_party/libxml/src/parser.c |
=================================================================== |
--- third_party/libxml/src/parser.c (revision 111259) |
+++ third_party/libxml/src/parser.c (working copy) |
@@ -2587,7 +2587,7 @@ |
buffer[nbchars++] = '&'; |
if (nbchars > buffer_size - i - XML_PARSER_BUFFER_SIZE) { |
- growBuffer(buffer, XML_PARSER_BUFFER_SIZE); |
+ growBuffer(buffer, i + XML_PARSER_BUFFER_SIZE); |
Cris Neckar
2012/01/03 18:50:38
nit: spaces instead of tabs
|
} |
for (;i > 0;i--) |
buffer[nbchars++] = *cur++; |