projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d5914
)
Fix from Marcus Daniels:
author
Jim Blandy
<jimb@gcc.gnu.org>
Mon, 12 Apr 1999 12:36:00 +0000
(12:36 +0000)
committer
Jim Blandy
<jimb@gcc.gnu.org>
Mon, 12 Apr 1999 12:36:00 +0000
(12:36 +0000)
* cplus-dem.c (demangle_fund_type): Don't run off the end of the
identifier looking for another underscore.
From-SVN: r26373
libiberty/cplus-dem.c
patch
|
blob
|
history
diff --git
a/libiberty/cplus-dem.c
b/libiberty/cplus-dem.c
index 1ebcb7da60027920debf15f55a19c75f060f46da..a48492240d9ed830f125b6acc89500fa13dfad06 100644
(file)
--- a/
libiberty/cplus-dem.c
+++ b/
libiberty/cplus-dem.c
@@
-3377,7
+3377,7
@@
demangle_fund_type (work, mangled, result)
{
int i;
++(*mangled);
- for (i = 0; **mangled != '_'; ++(*mangled), ++i)
+ for (i = 0; **mangled
&& **mangled
!= '_'; ++(*mangled), ++i)
buf[i] = **mangled;
buf[i] = '\0';
++(*mangled);