mi: Use memcpy() instead of memmove() when buffers are known not to overlap
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
5cc24dbb4c
commit
d23e446558
|
@ -3151,10 +3151,10 @@ realFindSpan(int y)
|
||||||
else
|
else
|
||||||
newMaxy = finalMaxy + change;
|
newMaxy = finalMaxy + change;
|
||||||
if (finalSpans) {
|
if (finalSpans) {
|
||||||
memmove(((char *) newSpans) +
|
memcpy(((char *) newSpans) +
|
||||||
(finalMiny - newMiny) * sizeof(struct finalSpan *),
|
(finalMiny - newMiny) * sizeof(struct finalSpan *),
|
||||||
(char *) finalSpans,
|
finalSpans,
|
||||||
finalSize * sizeof(struct finalSpan *));
|
finalSize * sizeof(struct finalSpan *));
|
||||||
free(finalSpans);
|
free(finalSpans);
|
||||||
}
|
}
|
||||||
if ((i = finalMiny - newMiny) > 0)
|
if ((i = finalMiny - newMiny) > 0)
|
||||||
|
|
Loading…
Reference in New Issue