From: Neil Booth Date: Mon, 6 Nov 2000 18:58:28 +0000 (+0000) Subject: tradcpp.c (special_symbol): Assign an null string rather than writing to an unallocat... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea33bfc554b774b3242edda58cca84c9c7770bfa;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a2fb0faa22..af2474a2b91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index 125e2cbe602..ef51248aae4 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; }