[git commit] ash: fix for last commit

Denys Vlasenko vda.linux at googlemail.com
Sun Jul 23 19:55:40 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=94af83eb8d92252339098b37826768b610e3e34b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

"mempcpy(q, s, len) + len" is obviously no good :(

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 


More information about the busybox-cvs mailing list