소스 검색

use memmove() instead of memcpy() in ttyread().

Aurélien Aptel 14 년 전
부모
커밋
54bc450dbf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      st.c

+ 1 - 1
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