diff options
author | cristy <urban-warrior@git.imagemagick.org> | 2014-04-18 01:48:55 +0000 |
---|---|---|
committer | cristy <urban-warrior@git.imagemagick.org> | 2014-04-18 01:48:55 +0000 |
commit | 5260121579546f3112be085c65789310ba8daaab (patch) | |
tree | 882666dba8c96fac0d3eda2ac39a5d71c9882e5c /coders/pes.c | |
parent | 100a056069d5718f995e95a77950dcae6f412ff4 (diff) | |
download | ImageMagick-5260121579546f3112be085c65789310ba8daaab.tar.gz |
Diffstat (limited to 'coders/pes.c')
-rw-r--r-- | coders/pes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coders/pes.c b/coders/pes.c index 33f3ce679..20d233886 100644 --- a/coders/pes.c +++ b/coders/pes.c @@ -505,7 +505,7 @@ static Image *ReadPESImage(const ImageInfo *image_info,ExceptionInfo *exception) for (i=0; i < (ssize_t) number_colors; i++) { j=(int) ReadBlobByte(image); - blocks[i].color=PESColor+j; + blocks[i].color=PESColor+(j < 0 ? 0 : j); blocks[i].offset=0; } for ( ; i < 256L; i++) |