forked from pool/ghostscript
12 lines
411 B
Diff
12 lines
411 B
Diff
|
--- base/gdevdevn.c.orig 2022-04-04 15:48:49.000000000 +0200
|
||
|
+++ base/gdevdevn.c 2023-07-26 11:31:03.873226054 +0200
|
||
|
@@ -1950,7 +1950,7 @@ devn_pcx_write_rle(const byte * from, co
|
||
|
byte data = *from;
|
||
|
|
||
|
from += step;
|
||
|
- if (data != *from || from == end) {
|
||
|
+ if (from >= end || data != *from) {
|
||
|
if (data >= 0xc0)
|
||
|
gp_fputc(0xc1, file);
|
||
|
} else {
|