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
This commit is contained in:
parent
e793a7140e
commit
8dc901ded3
|
@ -1,3 +1,9 @@
|
|||
2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
PR preprocessor/6844
|
||||
* cppmacro.c (cpp_macro_definition): Reserve space for terminating
|
||||
NUL.
|
||||
|
||||
2002-05-29 Eric Christopher <echristo@redhat.com>
|
||||
|
||||
* config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue