projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ace96a
)
ash: fix for last commit
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 23 Jul 2017 19:55:40 +0000
(21:55 +0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index fa03f8a4e27c697945fbc93b1b5a3f130ec2808b..c52637c922b2b4004a3435f6ee2dea62ff249ffe 100644
(file)
--- 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;