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
This commit is contained in:
Jim Blandy 1999-04-12 12:36:00 +00:00
parent 69d5914bd0
commit 92b0366412
1 changed files with 1 additions and 1 deletions

View File

@ -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);