diff options
author | Roland McGrath <roland@redhat.com> | 1992-05-20 00:49:58 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-05-20 00:49:58 +0000 |
commit | 6268af4ceb018dae2d393e93ce776ed87cb5b1e7 (patch) | |
tree | 04185f2d1b78f136a3644bc71ab4ecd293b8b69d | |
parent | ecfe56b932e5f70dbdd0f5dbe7aff650b17f35c7 (diff) | |
download | gunmake-6268af4ceb018dae2d393e93ce776ed87cb5b1e7.tar.gz |
Formerly main.c.~44~
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1027,8 +1027,8 @@ decode_switches (argc, argv) decode_env_switches ("MFLAGS", 6); other_args = (struct stringlist *) xmalloc (sizeof (struct stringlist)); - other_args->max = argc; - other_args->list = (char **) xmalloc (argc * sizeof (char *)); + other_args->max = argc + 1; + other_args->list = (char **) xmalloc ((argc + 1) * sizeof (char *)); other_args->idx = 1; other_args->list[0] = savestring (argv[0], strlen (argv[0])); |