aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-23 21:55:40 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-23 21:55:40 +0200
commit94af83eb8d92252339098b37826768b610e3e34b (patch)
tree3b0a806162809ca6f15f5b0b9240d3fc76471c9c /shell
parent5ace96a71304c2d5d3b8b864df9b4b8ca40f417c (diff)
downloadbusybox-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>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
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;