mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +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)
|
if(fgets(buff, nchars, file) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
if(buff[0] == '\r')
|
if(buff[0] == '\r')
|
||||||
memcpy(buff, buff + 1, nchars - 1);
|
memmove(buff, buff + 1, nchars - 1);
|
||||||
|
|
||||||
length = strlen(buff);
|
length = strlen(buff);
|
||||||
while(length && (buff[length-1] == '\r' || buff[length-1] == '\n'))
|
while(length && (buff[length-1] == '\r' || buff[length-1] == '\n'))
|
||||||
|
Loading…
Reference in New Issue
Block a user