commit 0f3765593981821986c7586350d792e26c22f71e from: Aurélien Aptel date: Sun Nov 28 00:40:39 2010 UTC use memmove() instead of memcpy() in ttyread(). commit - 1551e2db4632ec8a3dc50bf25e6720bf6c1fcca5 commit + 0f3765593981821986c7586350d792e26c22f71e blob - 3829e73836202e4d82699585c96a0fde0d5cd6c1 blob + 4d04416d1946b02bdb277585d030bb9c9c3f0991 --- st.c +++ 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