-f argument handler didn't copy the full filename ... :-)

This commit is contained in:
goldsimon 2010-04-01 13:02:58 +00:00
parent 62ea62ffc3
commit 4b47d17a37
1 changed files with 2 additions and 1 deletions

View File

@ -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]);