summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-23 21:55:40 +0200
committerDenys Vlasenko2017-07-23 21:55:40 +0200
commit94af83eb8d92252339098b37826768b610e3e34b (patch)
tree3b0a806162809ca6f15f5b0b9240d3fc76471c9c
parent5ace96a71304c2d5d3b8b864df9b4b8ca40f417c (diff)
downloadbusybox-94af83eb8d92252339098b37826768b610e3e34b.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index fa03f8a..c52637c 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;