ash: fix for last commit
"mempcpy(q, s, len) + len" is obviously no good :( Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5ace96a713
commit
94af83eb8d
@ -1761,7 +1761,7 @@ single_quote(const char *s)
|
|||||||
q = p = makestrspace(len + 3, p);
|
q = p = makestrspace(len + 3, p);
|
||||||
|
|
||||||
*q++ = '\'';
|
*q++ = '\'';
|
||||||
q = (char *)mempcpy(q, s, len) + len;
|
q = (char *)mempcpy(q, s, len);
|
||||||
*q++ = '\'';
|
*q++ = '\'';
|
||||||
s += len;
|
s += len;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user