From: Roland McGrath Date: Fri, 26 Jul 1996 00:33:25 +0000 (+0000) Subject: Thu Jul 25 19:53:31 1996 Roland McGrath X-Git-Tag: 3.74.7~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08905cdcbcdf3bef972d4567ac5c84ceae0bb1de;p=thirdparty%2Fmake.git Thu Jul 25 19:53:31 1996 Roland McGrath * main.c (define_makeflags): Back up P to point at null terminator when killing final space and dash before setting MFLAGS. --- diff --git a/main.c b/main.c index 97b160d8..b6e3c959 100644 --- a/main.c +++ b/main.c @@ -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';