diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-23 21:55:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-23 21:55:40 +0200 |
commit | 94af83eb8d92252339098b37826768b610e3e34b (patch) | |
tree | 3b0a806162809ca6f15f5b0b9240d3fc76471c9c | |
parent | 5ace96a71304c2d5d3b8b864df9b4b8ca40f417c (diff) | |
download | busybox-94af83eb8d92252339098b37826768b610e3e34b.tar.gz |
ash: fix for last commit
"mempcpy(q, s, len) + len" is obviously no good :(
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index fa03f8a4e..c52637c92 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -1761,7 +1761,7 @@ single_quote(const char *s) q = p = makestrspace(len + 3, p); *q++ = '\''; - q = (char *)mempcpy(q, s, len) + len; + q = (char *)mempcpy(q, s, len); *q++ = '\''; s += len; |