From eaac5f04530c23ff8620634fb5bb93cf07894d2e Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 1 Aug 2020 16:38:07 +0300 Subject: [PATCH] OcAppleIm4Lib: Fix memcpy undefined reference --- Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c b/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c index 74b267ef..95fea380 100644 --- a/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c +++ b/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c @@ -606,11 +606,15 @@ DERImg4FindDecodeProperty ( DERImg4Property *Property ) { + STATIC CONST DERItemSpec PropertyItemSpecTpl[] = DER_IMG4_PROPERTY_SPEC_INIT; + DERReturn DerResult; DERItem PropItem; uint32_t CurPropTag; + DERItemSpec PropertyItemSpec[ARRAY_SIZE (PropertyItemSpecTpl)]; + + CopyMem (PropertyItemSpec, PropertyItemSpecTpl, sizeof (PropertyItemSpecTpl)); - DERItemSpec PropertyItemSpec[] = DER_IMG4_PROPERTY_SPEC_INIT; PropertyItemSpec[1].tag = PropValueTag; assert (PropSetItem != NULL);