summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utmp-wtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utmp-wtmp.c b/utmp-wtmp.c
index 0cc9ceca84..cb3f201322 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);
}