Commit 92b03664 by Jim Blandy

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
parent 69d5914b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment