Commit 1a0bdd29 by Richard Kenner

(used_arg): Fix multilib_matches parsing to not corrupt entry parameter.

From-SVN: r12834
parent a95c317b
...@@ -4944,8 +4944,8 @@ used_arg (p, len) ...@@ -4944,8 +4944,8 @@ used_arg (p, len)
/* Break multilib_matches into the component strings of string and replacement /* Break multilib_matches into the component strings of string and replacement
string */ string */
for (p = multilib_matches; *p != '\0'; p++) for (q = multilib_matches; *q != '\0'; q++)
if (*p == ';') if (*q == ';')
cnt++; cnt++;
matches = (struct mswitchstr *) alloca ((sizeof (struct mswitchstr)) * cnt); matches = (struct mswitchstr *) alloca ((sizeof (struct mswitchstr)) * cnt);
......
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