Parcourir la source

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

Aurélien Aptel il y a 14 ans
Parent
commit
54bc450dbf
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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