Fix use of argv[0] as the program name after incrementing

This commit is contained in:
Chris Robinson
2018-02-28 21:04:45 -08:00
parent abc6e37e6e
commit 0d91d63cf3
+1 -4
View File
@@ -278,10 +278,7 @@ int main(int argc, char **argv)
}
if(argc < 1)
{
fprintf(stderr, "Usage: %s [-device <name>] [options] <filename>\n\n"
"Options:\n"
"\t-nodirect\tSilence direct path output (easier to hear reverb).\n\n",
argv[0]);
fprintf(stderr, "No filename spacified.\n");
CloseAL();
return 1;
}