diff options
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/pnmtopclxl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pnmtopclxl.c b/converter/other/pnmtopclxl.c index 4cd7c4d0..ad1b3261 100644 --- a/converter/other/pnmtopclxl.c +++ b/converter/other/pnmtopclxl.c @@ -269,10 +269,10 @@ XY_RLEnew(size_t const size) { MALLOCVAR(rleP); if (rleP) { - rleP->fbuf = malloc(size); + rleP->fbufsize = MAX(1024, size); + rleP->fbuf = malloc(rleP->fbufsize); if (rleP->fbuf) { - rleP->fbufsize = MAX(1024, size); retval = rleP; } else retval = NULL; |