summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2006-08-29 17:49:47 +0000
committerStef Walter <stef@thewalter.net>2006-08-29 17:49:47 +0000
commit70148c8ae939bcf58545c98ec6228be6755a5566 (patch)
tree3c23cf25ad35d03b765e8a54d87d16bf3f6d42b5
parent686ba4ee4b645d27c2d9db568c2f326acb05bc25 (diff)
- Fix endless loop on 0 length files
-rw-r--r--ChangeLog5
-rw-r--r--lib/rlib.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3310191..d5b291c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
+Version 2.3.3
+ - Add --enable-debug compile mode
+ - Fix endless loop on 0 length files
+
Version 2.3.2e
- Use <stdlib.h> instead of <malloc.h>
- - Add --enable-debug compile mode
Version 2.3.1b
- Use reallocf instead of realloc
diff --git a/lib/rlib.c b/lib/rlib.c
index 38e8268..5b308d3 100644
--- a/lib/rlib.c
+++ b/lib/rlib.c
@@ -134,7 +134,7 @@ int rlibRun(r_stream* stream, r_script* script, int done)
/* Need some data to work with */
if(!stream->nextIn || !stream->availIn)
- RETURN(R_IN);
+ RETURN(done ? R_DONE : R_IN);
stream->total = 0;