Skip to content

Commit

Permalink
Fix interpretation of '-' as pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Oct 12, 2024
1 parent 00bd89f commit 7243c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fluidsynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ int main(int argc, char **argv)
{
optarg = argv[i];

if(optarg[0] == '-')
if((optarg[0] == '-') && ((optarg[1] != '\0') || (c != 'F')))
{
printf("Expected argument to option -%c found switch instead\n", c);
print_usage();
Expand Down

0 comments on commit 7243c6d

Please sign in to comment.