diff options
| author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-11-28 01:40:39 +0100 |
|---|---|---|
| committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-11-28 01:40:39 +0100 |
| commit | 54bc450dbf057e66bed5f10d13d90a469e5ca8ae (patch) | |
| tree | 443cfe9e4c24e02e4951fbc93dffaec99780484c /st.c | |
| parent | fix and clean ttyread(). buf wasn't static. (diff) | |
| download | st-54bc450dbf057e66bed5f10d13d90a469e5ca8ae.tar.gz st-54bc450dbf057e66bed5f10d13d90a469e5ca8ae.zip | |
use memmove() instead of memcpy() in ttyread().
Diffstat (limited to '')
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -630,7 +630,7 @@ ttyread(void) { | |||
| 630 | } | 630 | } |
| 631 | 631 | ||
| 632 | /* keep any uncomplete utf8 char for the next call */ | 632 | /* keep any uncomplete utf8 char for the next call */ |
| 633 | memcpy(buf, ptr, buflen); | 633 | memmove(buf, ptr, buflen); |
| 634 | } | 634 | } |
| 635 | 635 | ||
| 636 | void | 636 | void |
