From 7e025e6eb5cf0d8f552f7c2635ec6ba02b20342f 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. [ From commit a58345f4e7825372be03614d594a9edf07558861 in ELinks 0.12.GIT. --KON ] --- 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 17f62a46..d7d29f88 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -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'; -- 2.11.4.GIT