From: Richard Kenner Date: Sat, 15 Feb 1997 22:25:35 +0000 (-0500) Subject: (process_command): Allocate space for terminating null. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb2be0e65671bd5027d278d9baf36f0dc4c9215f;p=gcc.git (process_command): Allocate space for terminating null. From-SVN: r13641 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index 0ec3ecab890..4be2f62db37 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2540,7 +2540,7 @@ process_command (argc, argv) 1, 0, NULL_PTR); else { - char *string = xmalloc (len); + char *string = xmalloc (len + 1); strncpy (string, value, len-7); strcpy (string+len-7, "include"); add_prefix (&include_prefixes, string,