summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/gdevdevn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gdevdevn.c b/base/gdevdevn.c
index 7b14d9c71..6351fb77a 100644
--- a/base/gdevdevn.c
+++ b/base/gdevdevn.c
@@ -1983,7 +1983,7 @@ devn_pcx_write_rle(const byte * from, const byte * end, int step, gp_file * file
1983 byte data = *from; 1983 byte data = *from;
1984 1984
1985 from += step; 1985 from += step;
1986 if (data != *from || from == end) { 1986 if (from >= end || data != *from) {
1987 if (data >= 0xc0) 1987 if (data >= 0xc0)
1988 gp_fputc(0xc1, file); 1988 gp_fputc(0xc1, file);
1989 } else { 1989 } else {