From 94af83eb8d92252339098b37826768b610e3e34b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 23 Jul 2017 21:55:40 +0200 Subject: [PATCH] ash: fix for last commit "mempcpy(q, s, len) + len" is obviously no good :( Signed-off-by: Denys Vlasenko --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1