From f6bf950b1043233af2b0bd227c72ec7d901d3bd6 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 29 May 2002 19:30:07 +0000 Subject: 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 --- gcc/cppmacro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppmacro.c') 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 -- cgit v1.2.3