diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-26 01:44:03 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-26 01:44:03 +0000 |
commit | 35da12ea8c1c661c97b988328eecebd4b3b30197 (patch) | |
tree | fd86e54ea763cbeccd51058c5569b52622a24567 | |
parent | 6d3599d316fad322bbba6d5d8864f41436c4ba35 (diff) | |
download | netpbm-mirror-35da12ea8c1c661c97b988328eecebd4b3b30197.tar.gz netpbm-mirror-35da12ea8c1c661c97b988328eecebd4b3b30197.tar.xz netpbm-mirror-35da12ea8c1c661c97b988328eecebd4b3b30197.zip |
Fix error message
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3773 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pbmtopgm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/converter/other/pbmtopgm.c b/converter/other/pbmtopgm.c index 6acec7a9..c774f268 100644 --- a/converter/other/pbmtopgm.c +++ b/converter/other/pbmtopgm.c @@ -6,6 +6,7 @@ #include <limits.h> #include "pm_c_util.h" +#include "nstring.h" #include "pgm.h" int @@ -28,10 +29,10 @@ main(int argc, char *argv[]) { pm_string_to_uint(argv[1], &width, &error); if (error) - pm_error("Invalid width argument: ", error); + pm_error("Invalid width argument: %s", error); pm_string_to_uint(argv[2], &height, &error); if (error) - pm_error("Invalid height argument: ", error); + pm_error("Invalid height argument: %s", error); if (width < 1 || height < 1) pm_error("width and height must be > 0"); |