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