mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
utmp: fix reboot string
This commit is contained in:
parent
d7fc909db3
commit
55e39f40f7
@ -179,7 +179,7 @@ int utmp_put_reboot(usec_t timestamp) {
|
||||
init_entry(&store, timestamp);
|
||||
|
||||
store.ut_type = BOOT_TIME;
|
||||
strncpy(store.ut_user, "reboot", sizeof(store.ut_type));
|
||||
strncpy(store.ut_user, "reboot", sizeof(store.ut_user));
|
||||
|
||||
return write_entry_both(&store);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user