]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly main.c.~44~
authorRoland McGrath <roland@redhat.com>
Wed, 20 May 1992 00:49:58 +0000 (00:49 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 20 May 1992 00:49:58 +0000 (00:49 +0000)
main.c

diff --git a/main.c b/main.c
index faa0450e2da665869b042dc3fe911b7be68c3912..81dbfdd6228433234290590cdb2ab1c55661fe89 100644 (file)
--- a/main.c
+++ b/main.c
@@ -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]));