diff options
Diffstat (limited to 'converter/ppm/ppmtospu.c')
-rw-r--r-- | converter/ppm/ppmtospu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/ppmtospu.c b/converter/ppm/ppmtospu.c index 8821afb1..b558c1fe 100644 --- a/converter/ppm/ppmtospu.c +++ b/converter/ppm/ppmtospu.c @@ -555,7 +555,7 @@ main (int argc, const char ** argv) { ifP = pm_openr(cmdline.inputFileName); - tuples = pnm_readpam(ifP, &pam, sizeof(pam)); + tuples = pnm_readpam(ifP, &pam, PAM_STRUCT_SIZE(tuple_type)); if (pam.depth < 3) pm_error("Image must be RGB, so at least 3 deep. This image is " |