projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56051c0
)
tradcpp.c (special_symbol): Assign an null string rather than writing to an unallocat...
author
Neil Booth
<neilb@earthling.net>
Mon, 6 Nov 2000 18:58:28 +0000
(18:58 +0000)
committer
Neil 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
patch
|
blob
|
history
gcc/tradcpp.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 8a2fb0faa22081547233e29635c0e86674791140..af2474a2b91c62278f987031db72f27fcd871806 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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
diff --git
a/gcc/tradcpp.c
b/gcc/tradcpp.c
index 125e2cbe602695de7228526ba1bc119c95e35b08..ef51248aae4d57fb105fa1906360c6c4e3622206 100644
(file)
--- 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;
}