summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/png/tinflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/png/tinflate.c')
-rw-r--r--apps/plugins/imageviewer/png/tinflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/imageviewer/png/tinflate.c b/apps/plugins/imageviewer/png/tinflate.c
index b142f7afe7..95d8e2b483 100644
--- a/apps/plugins/imageviewer/png/tinflate.c
+++ b/apps/plugins/imageviewer/png/tinflate.c
@@ -148,7 +148,7 @@ TINF_TABLES tbl = {
148 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 148 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017,
149 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f}, 149 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f},
150 }, 150 },
151 151
152 .length_bits = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 152 .length_bits = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
153 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 153 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02,
154 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, 154 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04,
@@ -494,7 +494,7 @@ int tinf_uncompress(void *dest, unsigned int *destLen,
494 } 494 }
495 495
496 if (res != TINF_OK) return TINF_DATA_ERROR; 496 if (res != TINF_OK) return TINF_DATA_ERROR;
497 497
498 if (d.source > (unsigned char *)source + sourceLen) 498 if (d.source > (unsigned char *)source + sourceLen)
499 return TINF_DATA_ERROR; 499 return TINF_DATA_ERROR;
500 } while (!bfinal); 500 } while (!bfinal);