summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-11-14 07:31:06 +0000
committerPaul Smith <psmith@gnu.org>2011-11-14 07:31:06 +0000
commita8a69a1c00a3856d62717eb9329a587b32625050 (patch)
treedfbddc44d0a293c59a1621b2c363bbed671c0e7f /read.c
parent6ee30c3fdb6cdefe465b2a8a96fba12c6e3f3055 (diff)
downloadmake-a8a69a1c00a3856d62717eb9329a587b32625050.tar.gz
Be sure to start parsing prereqs in the right place even if there are
escape characters (backslashes) in the target name. See Savannah bug #33399
Diffstat (limited to 'read.c')
-rw-r--r--read.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/read.c b/read.c
index 451f395e..c0a6fae3 100644
--- a/read.c
+++ b/read.c
@@ -1016,16 +1016,17 @@ eval (struct ebuffer *ebuf, int set_default)
/* There's no need to be ivory-tower about this: check for
one of the most common bugs found in makefiles... */
fatal (fstart, _("missing separator%s"),
- (cmd_prefix == '\t' && !strneq(line, " ", 8))
+ (cmd_prefix == '\t' && !strneq (line, " ", 8))
? "" : _(" (did you mean TAB instead of 8 spaces?)"));
continue;
}
/* Make the colon the end-of-string so we know where to stop
- looking for targets. */
+ looking for targets. Start there again once we're done. */
*colonp = '\0';
filenames = PARSE_FILE_SEQ (&p2, struct nameseq, '\0', NULL, 0);
- *p2 = ':';
+ *colonp = ':';
+ p2 = colonp;
if (!filenames)
{