mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
m68kmake.c: change overlapping memcpy() to memmove() [Casper Ti. Vector]
This commit is contained in:
parent
48d3d8890e
commit
bbcde3a472
@ -611,7 +611,7 @@ static int fgetline(char* buff, int nchars, FILE* file)
|
||||
if(fgets(buff, nchars, file) == NULL)
|
||||
return -1;
|
||||
if(buff[0] == '\r')
|
||||
memcpy(buff, buff + 1, nchars - 1);
|
||||
memmove(buff, buff + 1, nchars - 1);
|
||||
|
||||
length = strlen(buff);
|
||||
while(length && (buff[length-1] == '\r' || buff[length-1] == '\n'))
|
||||
|
Loading…
Reference in New Issue
Block a user