mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
html_textarea: Use memmove rather than memcpy.
This is an overlapping copy and memcpy is not required to support that.
This commit is contained in:
parent
bafe47508d
commit
a58345f4e7
@ -656,7 +656,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…
Reference in New Issue
Block a user