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