Skip to content

Commit

Permalink
efi: fix returned length of efi_get_variable()
Browse files Browse the repository at this point in the history
  • Loading branch information
poettering committed Feb 11, 2013
1 parent dfbacb6 commit ff47c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff47c89

Please sign in to comment.