utmp: fix reboot string

This commit is contained in:
Lennart Poettering 2010-04-24 00:41:02 +02:00
parent d7fc909db3
commit 55e39f40f7

View File

@ -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);
}