mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
html_textarea: Use memmove rather than memcpy.
This is an overlapping copy and memcpy is not required to support that. [ From commit a58345f4e7825372be03614d594a9edf07558861 in ELinks 0.12.GIT. --KON ]
This commit is contained in:
parent
44a4ec5cbc
commit
7e025e6eb5
@ -645,7 +645,7 @@ pp:
|
||||
if (p[0] == '\r') {
|
||||
if (p[1] == '\n'
|
||||
|| (p > fc->default_value && p[-1] == '\n')) {
|
||||
memcpy(p, p + 1, strlen(p));
|
||||
memmove(p, p + 1, strlen(p));
|
||||
p--;
|
||||
} else {
|
||||
p[0] = '\n';
|
||||
|
Loading…
x
Reference in New Issue
Block a user