From 6268af4ceb018dae2d393e93ce776ed87cb5b1e7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 20 May 1992 00:49:58 +0000 Subject: Formerly main.c.~44~ --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index faa0450..81dbfdd 100644 --- 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])); -- cgit v1.2.3