Skip to content

Commit

Permalink
I replaced read_file and didn't fix up the callers.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed May 1, 2015
1 parent c86d955 commit 6c5a2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/efivarfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ efivarfs_get_variable(efi_guid_t guid, const char *name, uint8_t **data,

*attributes = ret_attributes;
*data = ret_data;
*data_size = size;
*data_size = size - 1; // read_file pads out 1 extra byte to NUL it */

ret = 0;
err:
Expand Down

0 comments on commit 6c5a2a6

Please sign in to comment.