]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Fix memory copy length used in efi_nullify_name2()
authorMichael Brown <mcb30@ipxe.org>
Tue, 27 Oct 2020 11:43:08 +0000 (11:43 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 27 Oct 2020 11:43:08 +0000 (11:43 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_null.c

index 0bd69633b294a0b960439138a03e5deb8cebfe40..aa27ab67401672498135d5670528cec29f881f09 100644 (file)
@@ -229,7 +229,7 @@ static EFI_COMPONENT_NAME2_PROTOCOL efi_null_name2 = {
  */
 void efi_nullify_name2 ( EFI_COMPONENT_NAME2_PROTOCOL *name2 ) {
 
-       memcpy ( name2, &efi_null_name2, sizeof ( name2 ) );
+       memcpy ( name2, &efi_null_name2, sizeof ( *name2 ) );
 }
 
 /******************************************************************************