openbsd-ports/lang/gcc/3.3/patches/patch-gcc_gcc_c
2005-01-03 15:21:26 +00:00

16 lines
449 B
Plaintext

$OpenBSD: patch-gcc_gcc_c,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
--- gcc/gcc.c.orig Thu Apr 1 18:55:17 2004
+++ gcc/gcc.c Mon Jan 3 10:17:42 2005
@@ -6767,9 +6767,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++;