Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
use memmove() instead of memcpy() in ttyread().
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
3829e73
..
4d04416
100644
(file)
--- a/
st.c
+++ b/
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 */
- mem
cpy
(buf, ptr, buflen);
+ mem
move
(buf, ptr, buflen);
}
void
}
void