mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-14 03:42:53 +03:00
Use memmove instead of memcpy for overlapping objects.
This commit is contained in:
parent
a50890b1a4
commit
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user