shithub: jbig2

Download patch

ref: c1621123f28e88e6170d151137f2b88244b4f622
parent: 4ab96fef5bc876e58ce6f158bcc1cf66830a075e
author: Sebastian Rasmussen <sebras@gmail.com>
date: Wed Mar 11 16:55:51 EDT 2020

jbig2dec: Use size_t for string length.

--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -451,8 +451,7 @@
 {
     char *output_filename;
     const char *c, *e;
-    int extlen;
-    int len;
+    size_t extlen, len;
 
     if (extension == NULL) {
         fprintf(stderr, "no filename extension; cannot create output filename!\n");