memcpy does not cope well with overlapped segments.
This commit is contained in:
parent
49582bf49c
commit
d1327dba9c
@ -83,7 +83,7 @@
|
||||
int size;
|
||||
pt0++;
|
||||
size = TR - pt0;
|
||||
memcpy(pbase, pt0, size * sizeof(struct trail_frame));
|
||||
memmove(pbase, pt0, size * sizeof(struct trail_frame));
|
||||
TR = pbase + size;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user