aboutsummaryrefslogtreecommitdiff
path: root/src/image/efi_image.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-01-23 19:07:35 +0000
committerMichael Brown <mcb30@ipxe.org>2023-01-23 19:27:11 +0000
commit204d39222a0ff9f91fdffc2809de0b7f5aaabbae (patch)
tree64e2faac8d8d6141a54c867482cd3b36755ea06d /src/image/efi_image.c
parentfcfb70bfb2a9aae78e86a2505669068e7e511f79 (diff)
downloadipxe-204d39222a0ff9f91fdffc2809de0b7f5aaabbae.zip
ipxe-204d39222a0ff9f91fdffc2809de0b7f5aaabbae.tar.gz
ipxe-204d39222a0ff9f91fdffc2809de0b7f5aaabbae.tar.bz2
[efi] Add efi_path_terminate() utility function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image/efi_image.c')
-rw-r--r--src/image/efi_image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c
index 3c98dec..66a1952 100644
--- a/src/image/efi_image.c
+++ b/src/image/efi_image.c
@@ -96,9 +96,7 @@ efi_image_path ( struct image *image, EFI_DEVICE_PATH_PROTOCOL *parent ) {
efi_snprintf ( filepath->PathName, ( name_len + 1 /* NUL */ ),
"%s", image->name );
end = ( ( ( void * ) filepath ) + filepath_len );
- end->Type = END_DEVICE_PATH_TYPE;
- end->SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;
- end->Length[0] = sizeof ( *end );
+ efi_path_terminate ( end );
return path;
}