From 1a0bdd2991c6717edb37cbdcfae03842cc3b0a38 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 24 Sep 1996 08:28:52 -0400 Subject: [PATCH] (used_arg): Fix multilib_matches parsing to not corrupt entry parameter. From-SVN: r12834 --- gcc/gcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gcc.c b/gcc/gcc.c index ff3815144a0..081596f721c 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -4944,8 +4944,8 @@ used_arg (p, len) /* Break multilib_matches into the component strings of string and replacement string */ - for (p = multilib_matches; *p != '\0'; p++) - if (*p == ';') + for (q = multilib_matches; *q != '\0'; q++) + if (*q == ';') cnt++; matches = (struct mswitchstr *) alloca ((sizeof (struct mswitchstr)) * cnt); -- 2.30.2