From: Jim Blandy Date: Mon, 12 Apr 1999 12:36:00 +0000 (+0000) Subject: Fix from Marcus Daniels: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92b036641276c935c4e86be1ee79d37e2f1b309e;p=gcc.git 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 --- diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 1ebcb7da600..a48492240d9 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);