Use memmove instead of memcpy for overlapping objects.

This commit is contained in:
Roland Illig 2004-08-16 17:42:47 +00:00
parent a50890b1a4
commit d003fcb1e0

View File

@ -95,7 +95,7 @@ static unsigned int SLang_getkey2 (void)
SLang_Input_Buffer_Len--;
imax = SLang_Input_Buffer_Len;
memcpy ((char *) SLang_Input_Buffer,
memmove ((char *) SLang_Input_Buffer,
(char *) (SLang_Input_Buffer + 1), imax);
return(ch);
}