From 54bc450dbf057e66bed5f10d13d90a469e5ca8ae Mon Sep 17 00:00:00 2001 From: Aurélien Aptel Date: Sun, 28 Nov 2010 01:40:39 +0100 Subject: use memmove() instead of memcpy() in ttyread(). --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'st.c') diff --git a/st.c b/st.c index 3829e73..4d04416 100644 --- a/st.c +++ b/st.c @@ -630,7 +630,7 @@ ttyread(void) { } /* keep any uncomplete utf8 char for the next call */ - memcpy(buf, ptr, buflen); + memmove(buf, ptr, buflen); } void -- cgit v1.2.3-70-g09d2