From bb1ec1d79f93c60072d6df7491af8a8259f21545 Mon Sep 17 00:00:00 2001 From: Scott Bambrough Date: Fri, 28 Apr 2000 18:17:54 +0000 Subject: cpplex.c (_cpp_scan_line): Fix buffer overwrite. 2000-04-28 Scott Bambrough * cpplex.c (_cpp_scan_line): Fix buffer overwrite. From-SVN: r33514 --- gcc/cpplex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cpplex.c') diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 11a88e1..182ab25 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -532,7 +532,7 @@ _cpp_scan_line (pfile, list) if (list->tokens_used >= list->tokens_cap) expand_token_space (list); if (list->name_used + len >= list->name_cap) - auto_expand_name_space (list); + expand_name_space (list, list->name_used + len + 1 - list->name_cap); if (type == CPP_MACRO) type = CPP_NAME; -- cgit v1.1