Commit e29ef920 by Michael Meissner Committed by Michael Meissner

Fix off by 1 error in handling multilibs

From-SVN: r18630
parent 883482b2
Mon Mar 16 15:57:17 1998 Michael Meissner <meissner@cygnus.com>
* gcc.c (default_arg): Don't wander off the end of allocated
memory.
Mon Mar 16 12:55:15 1998 Jim Wilson <wilson@cygnus.com> Mon Mar 16 12:55:15 1998 Jim Wilson <wilson@cygnus.com>
* config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}. * config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}.
......
...@@ -5235,6 +5235,9 @@ default_arg (p, len) ...@@ -5235,6 +5235,9 @@ default_arg (p, len)
if ((end - start) == len && strncmp (p, start, len) == 0) if ((end - start) == len && strncmp (p, start, len) == 0)
return 1; return 1;
if (*end == '\0')
break;
} }
return 0; return 0;
......
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