diff options
author | Roland McGrath <roland@redhat.com> | 1994-09-06 23:13:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-09-06 23:13:43 +0000 |
commit | 4c0fef3dd76059581ece6181227f16792001bb40 (patch) | |
tree | 4dd1301723d706afb375d11225da9c6d20714d31 | |
parent | d3b65c3cb70449d3647c71537f198a1fb6f48a0e (diff) | |
download | gunmake-4c0fef3dd76059581ece6181227f16792001bb40.tar.gz |
(init_switches): Put a + first in options.
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1134,7 +1134,7 @@ main (argc, argv, envp) /* Parsing of arguments, decoding of switches. */ -static char options[sizeof (switches) / sizeof (switches[0]) * 3]; +static char options[1 + sizeof (switches) / sizeof (switches[0]) * 3]; static struct option long_options[(sizeof (switches) / sizeof (switches[0])) + (sizeof (long_option_aliases) / sizeof (long_option_aliases[0]))]; @@ -1152,6 +1152,7 @@ init_switches () return; p = options; + *p++ = '+'; /* Always permute. */ for (i = 0; switches[i].c != '\0'; ++i) { long_options[i].name = (switches[i].long_name == 0 ? "" : |