tradcpp.c (special_symbol): Assign an null string rather than writing to an unallocat...
authorNeil Booth <neilb@earthling.net>
Mon, 6 Nov 2000 18:58:28 +0000 (18:58 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 6 Nov 2000 18:58:28 +0000 (18:58 +0000)
        * tradcpp.c (special_symbol): Assign an null string rather
        than writing to an unallocated buffer.

From-SVN: r37278

gcc/ChangeLog
gcc/tradcpp.c

index 8a2fb0faa22081547233e29635c0e86674791140..af2474a2b91c62278f987031db72f27fcd871806 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-06  Neil Booth  <neilb@earthling.net>
+
+        * tradcpp.c (special_symbol): Assign an null string rather
+       than writing to an unallocated buffer.
+
 2000-11-06  Neil Booth  <neilb@earthling.net>
 
        * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
index 125e2cbe602695de7228526ba1bc119c95e35b08..ef51248aae4d57fb105fa1906360c6c4e3622206 100644 (file)
@@ -2075,7 +2075,7 @@ special_symbol (hp, op)
          sprintf (buf, "\"%s\"", string);
        }
       else
-       strcpy (buf, "\"\"");
+       buf = (char *) "";
 
       break;
     }