projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59927d6
)
(process_command): Allocate space for terminating null.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 15 Feb 1997 22:25:35 +0000
(17:25 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 15 Feb 1997 22:25:35 +0000
(17:25 -0500)
From-SVN: r13641
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index 0ec3ecab8904fe9f88509cd3f6e96f91393d19bc..4be2f62db37a2fb876402d6271fe96543ff4abd0 100644
(file)
--- 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,