m68kmake.c: change overlapping memcpy() to memmove() [Casper Ti. Vector]

This commit is contained in:
Alex W. Jackson 2014-07-25 12:41:50 +00:00
parent 48d3d8890e
commit bbcde3a472

View File

@ -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'))