From 2861ad6208bc5b012dab23243bbf0cb3a21a51ec Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 15 Jan 1993 18:18:29 +0000 Subject: [PATCH] Formerly main.c.~69~ --- main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 60e4e76..e7bcd48 100644 --- a/main.c +++ b/main.c @@ -1505,8 +1505,12 @@ define_makeflags (all, makefile) flags = flags->next; } while (flags != 0); - /* Kill the final space and dash. */ - p[-2] = '\0'; + if (p[-1] == '-') + /* Kill the final space and dash. */ + p -= 2; + + /* Terminate the string. */ + *p = '\0'; } /* On Sun, the value of MFLAGS starts with a `-' but the -- 2.7.4