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:
parent
56051c0abd
commit
ea33bfc554
|
@ -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
|
||||
|
|
|
@ -2075,7 +2075,7 @@ special_symbol (hp, op)
|
|||
sprintf (buf, "\"%s\"", string);
|
||||
}
|
||||
else
|
||||
strcpy (buf, "\"\"");
|
||||
buf = (char *) "";
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue