diff options
author | Paul Smith <psmith@gnu.org> | 2013-05-26 13:56:51 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-05-26 13:56:51 -0400 |
commit | bf60bbd67a345c27fae513372dd05a8c019176f6 (patch) | |
tree | 39d1b331130d7371dfe91677afd979e229b19af3 /job.c | |
parent | d2eaed1f0a1c361207487c45f7f5101bd0bf4239 (diff) | |
download | gunmake-bf60bbd67a345c27fae513372dd05a8c019176f6.tar.gz |
[SV #39035] Compare OUT to the beginning of the OUT var/func, not IN.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2036,10 +2036,12 @@ new_job (struct file *file) { char openparen = *ref; char closeparen = openparen == '(' ? ')' : '}'; + char *outref; int count; char *p; *out++ = *in++; /* Copy OPENPAREN. */ + outref = out; /* IN now points past the opening paren or brace. Count parens or braces until it is matched. */ count = 0; @@ -2072,7 +2074,7 @@ new_job (struct file *file) /* Discard any preceding whitespace that has already been written to the output. */ - while (out > ref + while (out > outref && isblank ((unsigned char)out[-1])) --out; |