Explorar el Código

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

Aurélien Aptel hace 14 años
padre
commit
54bc450dbf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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