use memmove() instead of memcpy() in ttyread(). - st - Simple Terminal
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 54bc450dbf057e66bed5f10d13d90a469e5ca8ae
(DIR) parent af75c433e56e74d2ad7a315d504a9303ea532f18
(HTM) Author: Aurélien Aptel <aurelien.aptel@gmail.com>
Date: Sun, 28 Nov 2010 01:40:39 +0100
use memmove() instead of memcpy() in ttyread().
Diffstat:
st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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