summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/gcc/gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/gcc/gcc/gcc.c b/gnu/usr.bin/gcc/gcc/gcc.c
index 08a37cdf947..e3e8255d7cf 100644
--- a/gnu/usr.bin/gcc/gcc/gcc.c
+++ b/gnu/usr.bin/gcc/gcc/gcc.c
@@ -6678,9 +6678,9 @@ used_arg (p, len)
them. */
for (i = 0; i < n_mdswitches; i++)
{
- const char *r;
+ const char *r, *eq;
- for (q = multilib_options; *q != '\0'; q++)
+ for (q = multilib_options, eq = q + strlen(q); q < eq; q++)
{
while (*q == ' ')
q++;