diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-04-24 20:03:57 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-04-24 20:03:57 +0000 |
commit | 59325650b11bec0af9114c0dcb52567f33fbf2c0 (patch) | |
tree | fa1856ed3c0f3b53ff1a4cafc1fbd79f60892a66 /gcc/cppmacro.c | |
parent | b746b8cb0a67a45e05da62c250a778033a1a9195 (diff) | |
download | gcc-59325650b11bec0af9114c0dcb52567f33fbf2c0.zip gcc-59325650b11bec0af9114c0dcb52567f33fbf2c0.tar.gz gcc-59325650b11bec0af9114c0dcb52567f33fbf2c0.tar.bz2 |
cpplex.c (cpp_token_len): Tighten up.
* cpplex.c (cpp_token_len): Tighten up.
(cpp_token_as_text): Need extra byte now.
* cpplib.c (glue_header_name): Need extra 2 bytes.
* cppmacro.c (cpp_macro_definition): Need extra byte.
From-SVN: r66049
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 b0b10ae..f77f6b3 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -1715,7 +1715,7 @@ cpp_macro_definition (pfile, node) if (token->type == CPP_MACRO_ARG) len += NODE_LEN (macro->params[token->val.arg_no - 1]); else - len += cpp_token_len (token); /* Includes room for ' '. */ + len += cpp_token_len (token) + 1; /* Includes room for ' '. */ if (token->flags & STRINGIFY_ARG) len++; /* "#" */ if (token->flags & PASTE_LEFT) |