aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-11-28 01:40:39 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-11-28 01:40:39 +0100
commit0f3765593981821986c7586350d792e26c22f71e (patch)
tree443cfe9e4c24e02e4951fbc93dffaec99780484c
parent1551e2db4632ec8a3dc50bf25e6720bf6c1fcca5 (diff)
downloadst-0f3765593981821986c7586350d792e26c22f71e.tar.gz
st-0f3765593981821986c7586350d792e26c22f71e.tar.bz2
use memmove() instead of memcpy() in ttyread().
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 3829e73..4d04416 100644
--- 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