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
This commit is contained in:
Neil Booth 2000-11-06 18:58:28 +00:00 committed by Neil Booth
parent 56051c0abd
commit ea33bfc554
2 changed files with 6 additions and 1 deletions

View 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

View File

@ -2075,7 +2075,7 @@ special_symbol (hp, op)
sprintf (buf, "\"%s\"", string);
}
else
strcpy (buf, "\"\"");
buf = (char *) "";
break;
}