diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-29 19:30:07 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-29 19:30:07 +0000 |
commit | f6bf950b1043233af2b0bd227c72ec7d901d3bd6 (patch) | |
tree | 4b691c9710fbabcdbfd5e6a14a0ebdf9f5ddb0e3 /gcc/cppmacro.c | |
parent | 34121701fa1b9da651d85f6f4577cb444aefb7d7 (diff) | |
download | ppe42-gcc-f6bf950b1043233af2b0bd227c72ec7d901d3bd6.tar.gz ppe42-gcc-f6bf950b1043233af2b0bd227c72ec7d901d3bd6.zip |
PR preprocessor/6844
* cppmacro.c (cpp_macro_definition): Reserve space for terminating
NUL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index d154c0ccb85..28095f25e9e 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -1537,7 +1537,7 @@ cpp_macro_definition (pfile, node) } /* Calculate length. */ - len = NODE_LEN (node) + 1; /* ' ' */ + len = NODE_LEN (node) + 2; /* ' ' and NUL. */ if (macro->fun_like) { len += 4; /* "()" plus possible final ".." of named |