mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
efi: fix returned length of efi_get_variable()
This commit is contained in:
parent
dfbacb6fe5
commit
ff47c895c8
@ -85,7 +85,7 @@ int efi_get_variable(sd_id128_t vendor, const char *name, uint32_t *attribute, v
|
||||
((char*) r)[st.st_size - 4 + 1] = 0;
|
||||
|
||||
*value = r;
|
||||
*size = (size_t) st.st_size;
|
||||
*size = (size_t) st.st_size - 4;
|
||||
|
||||
if (attribute)
|
||||
*attribute = a;
|
||||
|
Loading…
Reference in New Issue
Block a user