diff options
Diffstat (limited to 'converter/pgm/sbigtopgm.c')
-rw-r--r-- | converter/pgm/sbigtopgm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c index 8e933752..ef8b8202 100644 --- a/converter/pgm/sbigtopgm.c +++ b/converter/pgm/sbigtopgm.c @@ -123,7 +123,8 @@ int main(argc, argv) pm_error("malformed SBIG file header at character %d", hdr - header); } *cp = 0; - if (strncmp(hdr, "ST-", 3) == 0) { + if (strncmp(hdr, "ST-", 3) == 0) || + (hdr == &hdr[0] && strstr(hdr,"Image") != NULL)) { char *ep = strchr(hdr + 3, ' '); if (ep != NULL) { |