From 55e39f40f70e3e8476421b97c58ddb0a8c61a558 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 24 Apr 2010 00:41:02 +0200 Subject: [PATCH] utmp: fix reboot string --- utmp-wtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utmp-wtmp.c b/utmp-wtmp.c index 0cc9ceca8..cb3f20132 100644 --- a/utmp-wtmp.c +++ b/utmp-wtmp.c @@ -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); } -- 2.30.2