diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c index ff7f6488f2..970e9b94a0 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c @@ -155,7 +155,7 @@ ConvertAsn1TimeToEfiTime ( } Str = (CONST CHAR8*)Asn1Time->data; - SetMem (EfiTime, 0, sizeof (EFI_TIME)); + SetMem (EfiTime, sizeof (EFI_TIME), 0); Index = 0; if (Asn1Time->type == V_ASN1_UTCTIME) { /* two digit year */