Use memmove instead of memcpy for overlapping objects.
Этот коммит содержится в:
родитель
a50890b1a4
Коммит
d003fcb1e0
@ -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);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user