use memmove() instead of memcpy() in ttyread().
This commit is contained in:
2
st.c
2
st.c
@ -630,7 +630,7 @@ ttyread(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* keep any uncomplete utf8 char for the next call */
|
/* keep any uncomplete utf8 char for the next call */
|
||||||
memcpy(buf, ptr, buflen);
|
memmove(buf, ptr, buflen);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user