summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/srle.c')
-rw-r--r--base/srle.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/base/srle.c b/base/srle.c
index 0c0186e0..21b729f3 100644
--- a/base/srle.c
+++ b/base/srle.c
@@ -329,11 +329,13 @@ run_len_0_n0_read:
*++q = n0;
}
case state_eod_unmarked:
- if (wlimit - q < 1) {
- ss->state = state_eod_unmarked;
- goto no_output_room;
+ if (!ss->omitEOD) {
+ if (wlimit - q < 1) {
+ ss->state = state_eod_unmarked;
+ goto no_output_room;
+ }
+ *++q = 128; /* EOD */
}
- *++q = 128; /* EOD */
case state_eod:
ss->run_len = 0;
ss->state = state_0;