From 70120ffb43afc634e00cc539c36e00afa4486a63 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 22 Sep 1998 00:24:21 +0000 Subject: [PATCH] Corrected a loop if the file size is 0, Daniel. --- ChangeLog | 4 ++++ parser.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36d37d89..9557f5cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 21 20:11:13 EDT 1998 Daniel Veillard + + * parser.c: corrected a loop for files of size 0 + 1998-08-20 Raja R Harinath * error.h: New file. Contains prototyes from `error.c'. diff --git a/parser.c b/parser.c index c7fb47f4..1b3b384e 100644 --- a/parser.c +++ b/parser.c @@ -3059,7 +3059,7 @@ retry_bigger: } #ifdef HAVE_ZLIB_H gzclose(input); - if (res >= 20 * buf.st_size) { + if (res >= 20 * buf.st_size + 20) { free(buffer); buf.st_size *= 2; goto retry_bigger;