diff options
Diffstat (limited to 'libstb/secvar/backend/edk2-compat-process.c')
-rw-r--r-- | libstb/secvar/backend/edk2-compat-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstb/secvar/backend/edk2-compat-process.c b/libstb/secvar/backend/edk2-compat-process.c index 244f234..037c1b4 100644 --- a/libstb/secvar/backend/edk2-compat-process.c +++ b/libstb/secvar/backend/edk2-compat-process.c @@ -370,7 +370,7 @@ int update_timestamp(const char *key, const struct efi_time *timestamp, char *la static uint64_t unpack_timestamp(const struct efi_time *timestamp) { uint64_t val = 0; - uint16_t year = le32_to_cpu(timestamp->year); + uint16_t year = le16_to_cpu(timestamp->year); /* pad1, nanosecond, timezone, daylight and pad2 are meant to be zero */ val |= ((uint64_t) timestamp->pad1 & 0xFF) << 0; |