crypt32: Use memmove rather than memcpy when addresses might overlap.

This commit is contained in:
Juan Lang 2007-11-01 09:45:49 -07:00 committed by Alexandre Julliard
parent 329761e7e1
commit b9dae979a4
1 changed files with 1 additions and 1 deletions

View File

@ -2123,7 +2123,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
{
if (j < validUsages.cUsageIdentifier - 1)
{
memcpy(&validUsages.rgpszUsageIdentifier[j],
memmove(&validUsages.rgpszUsageIdentifier[j],
&validUsages.rgpszUsageIdentifier[j +
numRemoved + 1],
(validUsages.cUsageIdentifier - numRemoved