From 7243c6dd6ade08d11585ee3e851c83bfba72b5d4 Mon Sep 17 00:00:00 2001 From: derselbst Date: Sat, 12 Oct 2024 12:12:16 +0200 Subject: [PATCH] Fix interpretation of '-' as pipe --- src/fluidsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluidsynth.c b/src/fluidsynth.c index 3f6c46ab8..27c1fe8a7 100644 --- a/src/fluidsynth.c +++ b/src/fluidsynth.c @@ -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();