diff options
-rw-r--r-- | converter/pgm/sbigtopgm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c index ff009f00..c49a4165 100644 --- a/converter/pgm/sbigtopgm.c +++ b/converter/pgm/sbigtopgm.c @@ -123,8 +123,8 @@ main(int argc, char ** argv) { char *cp = strchr(hdr, '\n'); if (cp == NULL) { - pm_error("malformed SBIG file header at character %lu", - hdr - header); + pm_error("malformed SBIG file header at character %u", + (unsigned)(hdr - header)); } *cp = '\0'; if (strncmp(hdr, "ST-", 3) == 0) { |