|
|
@@ -51,7 +51,7 @@ int main(int argc, char *argv[]) |
|
|
|
return EXIT_FAILURE; |
|
|
|
|
|
|
|
parser = strrchr(argv[1], '/'); |
|
|
|
strcpy(fmtstr, parser ? parser : argv[1]); |
|
|
|
strcpy(fmtstr, parser ? parser + 1 : argv[1]); |
|
|
|
parser = strrchr(fmtstr, '.'); |
|
|
|
if(parser) |
|
|
|
*parser = '\0'; |
|
|
|