summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devices/gdevpcx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevpcx.c b/devices/gdevpcx.c
index 1735851d2..91de4abb6 100644
--- a/devices/gdevpcx.c
+++ b/devices/gdevpcx.c
@@ -442,7 +442,7 @@ pcx_write_rle(const byte * from, const byte * end, int step, gp_file * file)
442 byte data = *from; 442 byte data = *from;
443 443
444 from += step; 444 from += step;
445 if (data != *from || from == end) { 445 if (from >= end || data != *from) {
446 if (data >= 0xc0) 446 if (data >= 0xc0)
447 gp_fputc(0xc1, file); 447 gp_fputc(0xc1, file);
448 } else { 448 } else {