Fix off by 1 error in handling multilibs
From-SVN: r18630
This commit is contained in:
parent
883482b23d
commit
e29ef9202e
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}.
|
||||
|
|
|
@ -5235,6 +5235,9 @@ default_arg (p, len)
|
|||
|
||||
if ((end - start) == len && strncmp (p, start, len) == 0)
|
||||
return 1;
|
||||
|
||||
if (*end == '\0')
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue