1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Applied patch from John Ellson <ellson@lucent.com> closing #1646, Daniel

This commit is contained in:
Daniel Veillard
1999-07-12 10:38:12 +00:00
parent be9e595a41
commit d79d787092
3 changed files with 5 additions and 12 deletions

View File

@ -328,11 +328,7 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
}
cnt = 0;
#ifdef HAVE_ZLIB_H
while(!gzeof(input)) {
#else
while(1) {
#endif
if (cnt >= len) {
len *= 2;
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
@ -4695,11 +4691,7 @@ xmlCreateFileParserCtxt(const char *filename)
}
cnt = 0;
#ifdef HAVE_ZLIB_H
while(!gzeof(input)) {
#else
while(1) {
#endif
if (cnt == len) {
len *= 2;
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));