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