X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=fsck.cpm.c;h=c7e9048e44f94900456dc0340af8a47db19fb52d;hb=b8f1c7e5832d9783b3cae28d364ef9ba021195b1;hp=9878609c22fde985e26a728ab8f3ae8e0cefbc55;hpb=975c05c916276c70d34b5aa14e5f0faca1ae013d;p=debian%2Fcpmtools diff --git a/fsck.cpm.c b/fsck.cpm.c index 9878609..c7e9048 100644 --- a/fsck.cpm.c +++ b/fsck.cpm.c @@ -8,7 +8,7 @@ #include #include -#include "getopt.h" +#include "getopt_.h" #include "cpmdir.h" #include "cpmfs.h" @@ -588,7 +588,7 @@ int main(int argc, char *argv[]) } if (optind!=(argc-1)) usage=1; - else image=argv[optind]; + else image=argv[optind++]; if (usage) {