gcc.c (do_spec_1): Fix off-by-one error for '%M' case.

2001-02-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c (do_spec_1): Fix off-by-one error for '%M' case.

From-SVN: r39684
This commit is contained in:
Jeffrey Oldham 2001-02-14 16:37:14 +00:00 committed by Jeffrey D. Oldham
parent c6d9a88cbc
commit 55bd9f24ca
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2001-02-14 Jeffrey Oldham <oldham@codesourcery.com>
* gcc.c (do_spec_1): Fix off-by-one error for '%M' case.
2001-02-14 Mark Mitchell <mark@codesourcery.com>
* Makefile.in (toplev.o): Depend on params.h.

View file

@ -4493,7 +4493,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
len = strlen (multilib_dir);
obstack_blank (&obstack, len + 1);
p = obstack_next_free (&obstack) - len;
p = obstack_next_free (&obstack) - (len + 1);
*p++ = '_';
for (q = multilib_dir; *q ; ++q, ++p)