diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-02-15 22:25:35 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-02-15 22:25:35 +0000 |
commit | 36395137dfef6c14759e56cf07032b553b129db8 (patch) | |
tree | 600bbcd049534f17e84ed60d7c3589174aba20b5 /gcc/gcc.c | |
parent | 0e7d679537948ee6fb440dce9abb00feb0483ce8 (diff) | |
download | ppe42-gcc-36395137dfef6c14759e56cf07032b553b129db8.tar.gz ppe42-gcc-36395137dfef6c14759e56cf07032b553b129db8.zip |
(process_command): Allocate space for terminating null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |