mkd2html wasn't passing pgm to hoptusage()

This commit is contained in:
david parsons
2019-04-12 11:47:08 -07:00
parent 5bf1c6cfae
commit 2be654fdeb
+2 -2
View File
@@ -106,7 +106,7 @@ char **argv;
hopterr(&flags, 1); hopterr(&flags, 1);
while ( res = gethopt(&flags, opts, NROPTS) ) { while ( res = gethopt(&flags, opts, NROPTS) ) {
if ( res == HOPTERR ) { if ( res == HOPTERR ) {
hoptusage(argv[0], opts, NROPTS, "source [dest]"); hoptusage(pgm, opts, NROPTS, "source [dest]");
exit(1); exit(1);
} }
@@ -168,7 +168,7 @@ char **argv;
break; break;
default: default:
hoptusage(argv[0], opts, NROPTS, "source [dest]"); hoptusage(pgm, opts, NROPTS, "source [dest]");
exit(1); exit(1);
} }