use memmove() instead of memcpy() in ttyread().

This commit is contained in:
Aurélien Aptel 2010-11-28 01:40:39 +01:00
parent 1551e2db46
commit 0f37655939
1 changed files with 1 additions and 1 deletions

2
st.c
View File

@ -630,7 +630,7 @@ ttyread(void) {
}
/* keep any uncomplete utf8 char for the next call */
memcpy(buf, ptr, buflen);
memmove(buf, ptr, buflen);
}
void