summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;