-f argument handler didn't copy the full filename ... :-)
This commit is contained in:
parent
62ea62ffc3
commit
4b47d17a37
|
@ -137,7 +137,8 @@ int main(int argc, char *argv[])
|
|||
} else if (strstr(argv[i], "-c")) {
|
||||
precalcChksum = 1;
|
||||
} else if((argv[i][1] == 'f') && (argv[i][2] == ':')) {
|
||||
strcpy(targetfile, &argv[i][4]);
|
||||
strcpy(targetfile, &argv[i][3]);
|
||||
printf("Writing to file \"%s\"\n", targetfile);
|
||||
}
|
||||
} else {
|
||||
strcpy(path, argv[i]);
|
||||
|
|
Loading…
Reference in New Issue