ash: fix for last commit
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 23 Jul 2017 19:55:40 +0000 (21:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 23 Jul 2017 19:55:40 +0000 (21:55 +0200)
"mempcpy(q, s, len) + len" is obviously no good :(

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index fa03f8a4e27c697945fbc93b1b5a3f130ec2808b..c52637c922b2b4004a3435f6ee2dea62ff249ffe 100644 (file)
@@ -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;