Use ZSTD_memmove() instead of memmove()

dev
senhuang42 2020-11-02 11:43:19 -05:00
parent c54a25b666
commit 3434049c1f
1 changed files with 1 additions and 1 deletions

View File

@ -2577,7 +2577,7 @@ size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
if (i != totalSeqs-1) {
/* Add last literals to next sequence, then "delete" this sequence */
seqCollector.seqStart[i+1].litLength += seqCollector.seqStart[i].litLength;
memmove(seqCollector.seqStart+i, seqCollector.seqStart+i+1, (totalSeqs-i-1)*sizeof(ZSTD_Sequence));
ZSTD_memmove(seqCollector.seqStart+i, seqCollector.seqStart+i+1, (totalSeqs-i-1)*sizeof(ZSTD_Sequence));
}
totalSeqs--;
} else {