Commit 54bc450

Aurélien Aptel <aurelien.aptel@gmail.com>
2010-11-27 19:40:39
use memmove() instead of memcpy() in ttyread().
1 parent af75c43
Changed files (1)
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