diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-29 19:30:07 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-29 19:30:07 +0000 |
commit | 8dc901ded38b2ad59f56ca82d9d8043d4fa92d18 (patch) | |
tree | 4b691c9710fbabcdbfd5e6a14a0ebdf9f5ddb0e3 /gcc/cppmacro.c | |
parent | e793a7140efe7b31614a89f234952ee2e9d23dfc (diff) | |
download | gcc-8dc901ded38b2ad59f56ca82d9d8043d4fa92d18.zip gcc-8dc901ded38b2ad59f56ca82d9d8043d4fa92d18.tar.gz gcc-8dc901ded38b2ad59f56ca82d9d8043d4fa92d18.tar.bz2 |
re PR preprocessor/6844 (Seg fault when trying to preprocess a file with lots of #define's)
PR preprocessor/6844
* cppmacro.c (cpp_macro_definition): Reserve space for terminating
NUL.
From-SVN: r54014
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 d154c0c..28095f2 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 |