From fc4838b740d2ca62792fb33d569463f9f85c3ff6 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 30 Apr 2007 01:41:32 +0300 Subject: [PATCH] html_textarea: Use memmove rather than memcpy. This is an overlapping copy and memcpy is not required to support that. --- src/document/html/parser/forms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/html/parser/forms.c b/src/document/html/parser/forms.c index 581adb21..b4631109 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -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';