]> Sergey Matveev's repositories - st.git/commitdiff
use memmove() instead of memcpy() in ttyread().
authorAurélien Aptel <aurelien.aptel@gmail.com>
Sun, 28 Nov 2010 00:40:39 +0000 (01:40 +0100)
committerAurélien Aptel <aurelien.aptel@gmail.com>
Sun, 28 Nov 2010 00:40:39 +0000 (01:40 +0100)
st.c

diff --git a/st.c b/st.c
index 3829e73836202e4d82699585c96a0fde0d5cd6c1..4d04416d1946b02bdb277585d030bb9c9c3f0991 100644 (file)
--- 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