aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/mkflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkflags.c b/scripts/mkflags.c
index 1cad5bf4..748e93d3 100644
--- a/scripts/mkflags.c
+++ b/scripts/mkflags.c
@@ -44,7 +44,7 @@ struct flag *digest(char *string)
blank->lopt = new;
list = blank;
}
- while (*++string != ')'); // An empty longopt () would break this.
+ while (*++string != ')') if (*string == '-') *string = '_'; // An empty longopt () would break this.
*(string++) = 0;
continue;
}