aboutsummaryrefslogtreecommitdiffstats
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
commit54bc450dbf057e66bed5f10d13d90a469e5ca8ae (patch)
tree443cfe9e4c24e02e4951fbc93dffaec99780484c
parentaf75c433e56e74d2ad7a315d504a9303ea532f18 (diff)
downloadst-54bc450dbf057e66bed5f10d13d90a469e5ca8ae.tar.gz
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
remember that computers suck.