From 731bf1e2804a640fc0e62091ff654bd0748c52b6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 18 Dec 2014 23:47:30 +0000 Subject: Fix bogus 'bad magic number' message git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2343 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libppm1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libppm1.c') diff --git a/lib/libppm1.c b/lib/libppm1.c index ff940540..2e17e894 100644 --- a/lib/libppm1.c +++ b/lib/libppm1.c @@ -148,8 +148,8 @@ ppm_readppminit(FILE * const fileP, break; default: - pm_error("bad magic number %d - not a PPM, PGM, PBM, or PAM file", - PAM_FORMAT_TYPE(*formatP)); + pm_error("bad magic number 0x%x - not a PPM, PGM, PBM, or PAM file", + realFormat); } validateComputableSize(*colsP, *rowsP); } -- cgit 1.4.1