diff options
-rw-r--r-- | converter/other/pbmtopgm.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/converter/other/pbmtopgm.c b/converter/other/pbmtopgm.c index 817fb5b3..72a2afff 100644 --- a/converter/other/pbmtopgm.c +++ b/converter/other/pbmtopgm.c @@ -45,7 +45,7 @@ main(int argc, char *argv[]) { if (width > cols) pm_error("You specified a sample width (%u columns) which is greater " - "than the image width (%u columns)", height, rows); + "than the image width (%u columns)", width, cols); if (height > rows) pm_error("You specified a sample height (%u rows) which is greater " "than the image height (%u rows)", height, rows); diff --git a/doc/HISTORY b/doc/HISTORY index 318053e3..1762be61 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -54,6 +54,8 @@ not yet BJH Release 11.04.00 pgmtexture: Fix bug: ignores -d. Introduced in Netpbm 10.56 (September 2011). + pbmtopgm: Fix error message for excessive -width. + library: add check of maxval for computable size. Build: Include LDFLAGS in link of shared library. |