memcpy does not cope well with overlapped segments.

This commit is contained in:
Vítor Santos Costa 2011-04-05 10:01:34 +01:00
parent 49582bf49c
commit d1327dba9c

View File

@ -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;
} }
} }