projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b72e38
)
Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
author
Roland McGrath
<roland@redhat.com>
Fri, 26 Jul 1996 00:33:25 +0000
(
00:33
+0000)
committer
Roland McGrath
<roland@redhat.com>
Fri, 26 Jul 1996 00:33:25 +0000
(
00:33
+0000)
* main.c (define_makeflags): Back up P to point at null terminator
when killing final space and dash before setting MFLAGS.
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 97b160d836a4853aa9bb0a712fd87f3226f1fa71..b6e3c95907fcd04b128111a13c5ed5148f95c35d 100644
(file)
--- 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';