1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -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:
Kalle Olavi Niemitalo 2007-04-30 01:41:32 +03:00 committed by Witold Filipczyk
parent 0b10539d10
commit fc4838b740

View File

@ -657,7 +657,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';