From ea33bfc554b774b3242edda58cca84c9c7770bfa Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 6 Nov 2000 18:58:28 +0000 Subject: [PATCH] tradcpp.c (special_symbol): Assign an null string rather than writing to an unallocated buffer. * tradcpp.c (special_symbol): Assign an null string rather than writing to an unallocated buffer. From-SVN: r37278 --- gcc/ChangeLog | 5 +++++ gcc/tradcpp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a2fb0f..af2474a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2000-11-06 Neil Booth + * tradcpp.c (special_symbol): Assign an null string rather + than writing to an unallocated buffer. + +2000-11-06 Neil Booth + * cpplex.c (_cpp_equiv_tokens): Check arg_no in the CPP_MACRO_ARG case. diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index 125e2cb..ef51248 100644 --- a/gcc/tradcpp.c +++ b/gcc/tradcpp.c @@ -2075,7 +2075,7 @@ special_symbol (hp, op) sprintf (buf, "\"%s\"", string); } else - strcpy (buf, "\"\""); + buf = (char *) ""; break; } -- 2.7.4