diff options
author | Norbert Preining <norbert@preining.info> | 2021-02-07 03:00:48 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-02-07 03:00:48 +0000 |
commit | e068841d2fc2976d094b382e4dd5e4d6df455506 (patch) | |
tree | a10b009fa5e01a531fa1eb92723f24ae05ba6d4e /fonts/utilities/ps2pk/pk2bm.c | |
parent | 27accb929aa8061d3aea791560a1bffd3876f0c7 (diff) |
CTAN sync 202102070300
Diffstat (limited to 'fonts/utilities/ps2pk/pk2bm.c')
-rw-r--r-- | fonts/utilities/ps2pk/pk2bm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fonts/utilities/ps2pk/pk2bm.c b/fonts/utilities/ps2pk/pk2bm.c index 5445bf7409..7f13430cab 100644 --- a/fonts/utilities/ps2pk/pk2bm.c +++ b/fonts/utilities/ps2pk/pk2bm.c @@ -64,21 +64,21 @@ int main(int argc, char *argv[]) if (*++argv[0] == '\0') { argc--; argv++; } - if (argv[0] == '\0') goto invalid; + if (argv[0] == NULL) goto invalid; C = *argv[0]; done = 1; break; case 'o': if (*++argv[0] == '\0') { argc--; ++argv; } - if (argv[0] == '\0') goto invalid; + if (argv[0] == NULL) goto invalid; C = atoo(argv[0]); done = 1; break; case 'H': if (*++argv[0] == '\0') { argc--; argv++; } - if (argv[0] == '\0') goto invalid; + if (argv[0] == NULL) goto invalid; h = atoi(argv[0]); done=1; break; @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) if (*++argv[0] == '\0') { argc--; argv++; } - if (argv[0] == '\0') goto invalid; + if (argv[0] == NULL) goto invalid; w = atoi(argv[0]); done=1; break; @@ -104,9 +104,9 @@ invalid: } if (argc == 0) { - msg ("pk2bm (ps2pk) version " PACKAGE_VERSION "\n"); - printf("Usage: %s [-bh] {-c char|-o octchar} [-W width -H height] pkfile\n", myname); - exit(1); + msg ("pk2bm (ps2pk) version " PACKAGE_VERSION " (" TL_VERSION ")\n"); + msg ("Usage: %s [-bh] {-c char|-o octchar} [-W width -H height] pkfile\n", myname); + fatal("\nEmail bug reports to %s.\n", PACKAGE_BUGREPORT); } #ifdef WIN32 |