Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>

* main.c (define_makeflags): Back up P to point at null terminator
	when killing final space and dash before setting MFLAGS.
This commit is contained in:
Roland McGrath 1996-07-26 00:33:25 +00:00
parent 4b72e38789
commit 08905cdcbc

7
main.c
View file

@ -2040,8 +2040,11 @@ define_makeflags (all, makefile)
/* No flags. */
flagstring[0] = '\0';
else if (p[-1] == '-')
/* Kill the final space and dash. */
p[-2] = '\0';
{
/* Kill the final space and dash. */
p -= 2;
*p = '\0';
}
else
/* Terminate the string. */
*p = '\0';