diff options
author | Roland McGrath <roland@redhat.com> | 1993-01-15 18:18:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-01-15 18:18:29 +0000 |
commit | 2861ad6208bc5b012dab23243bbf0cb3a21a51ec (patch) | |
tree | 89ba8511802b44ee4220991750cacdf319bae26f /main.c | |
parent | 37d9554e311b0731bbf78c4d2b6fe20861fcc6a8 (diff) | |
download | gunmake-2861ad6208bc5b012dab23243bbf0cb3a21a51ec.tar.gz |
Formerly main.c.~69~
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |