diff options
author | Jim Blandy <jimb@gcc.gnu.org> | 1999-04-12 12:36:00 +0000 |
---|---|---|
committer | Jim Blandy <jimb@gcc.gnu.org> | 1999-04-12 12:36:00 +0000 |
commit | 92b036641276c935c4e86be1ee79d37e2f1b309e (patch) | |
tree | 28fd96faace2913f6e38ec8308c37a1b27429b78 /libiberty | |
parent | 69d5914bd0daac6f06fcf5c98eca53674a500dcb (diff) | |
download | gcc-92b036641276c935c4e86be1ee79d37e2f1b309e.zip gcc-92b036641276c935c4e86be1ee79d37e2f1b309e.tar.gz gcc-92b036641276c935c4e86be1ee79d37e2f1b309e.tar.bz2 |
Fix from Marcus Daniels:
* cplus-dem.c (demangle_fund_type): Don't run off the end of the
identifier looking for another underscore.
From-SVN: r26373
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/cplus-dem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 1ebcb7d..a484922 100644 --- 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); |