Blame SOURCES/netpbm-pnmtopclxl.patch

1ab173
diff -up netpbm-10.58.01/converter/other/pnmtopclxl.c.pnmtopclxl netpbm-10.58.01/converter/other/pnmtopclxl.c
1ab173
--- netpbm-10.58.01/converter/other/pnmtopclxl.c.pnmtopclxl	2012-04-09 15:31:42.000000000 +0200
1ab173
+++ netpbm-10.58.01/converter/other/pnmtopclxl.c	2012-06-13 15:39:17.566141565 +0200
1ab173
@@ -269,10 +269,10 @@ XY_RLEnew(size_t const size) {
1ab173
 
1ab173
     MALLOCVAR(rleP);
1ab173
     if (rleP) {
1ab173
-        rleP->fbuf = malloc(size);
1ab173
+        rleP->fbufsize = MAX(1024, size);
1ab173
+        rleP->fbuf = malloc(rleP->fbufsize);
1ab173
 
1ab173
         if (rleP->fbuf) {
1ab173
-            rleP->fbufsize = MAX(1024, size);
1ab173
             retval = rleP;
1ab173
         } else
1ab173
             retval = NULL;