sbvarsign: Fix invalid sizeof() for zeroing timestamp data
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
030d5ef321
commit
feddcb4f4f
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ static int set_timestamp(EFI_TIME *timestamp)
|
|||
|
||||
/* copy to our EFI-specific time structure. Other fields (Nanosecond,
|
||||
* TimeZone, Daylight and Pad) are defined to be zero */
|
||||
memset(timestamp, 0, sizeof(timestamp));
|
||||
memset(timestamp, 0, sizeof(*timestamp));
|
||||
timestamp->Year = tm->tm_year;
|
||||
timestamp->Month = tm->tm_mon;
|
||||
timestamp->Day = tm->tm_mday;
|
||||
|
|
Loading…
Reference in a new issue