mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-10 14:24:53 +00:00
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:
parent
4b72e38789
commit
08905cdcbc
1 changed files with 5 additions and 2 deletions
5
main.c
5
main.c
|
@ -2040,8 +2040,11 @@ define_makeflags (all, makefile)
|
||||||
/* No flags. */
|
/* No flags. */
|
||||||
flagstring[0] = '\0';
|
flagstring[0] = '\0';
|
||||||
else if (p[-1] == '-')
|
else if (p[-1] == '-')
|
||||||
|
{
|
||||||
/* Kill the final space and dash. */
|
/* Kill the final space and dash. */
|
||||||
p[-2] = '\0';
|
p -= 2;
|
||||||
|
*p = '\0';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
/* Terminate the string. */
|
/* Terminate the string. */
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
Loading…
Reference in a new issue