summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 00:41:02 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 00:41:02 +0200
commit55e39f40f70e3e8476421b97c58ddb0a8c61a558 (patch)
tree7965df141d7bd3c059a5632dbe106d3f2aeefef1
parentd7fc909db3346b58a0ecce9c18d5ae68ffe7cb8b (diff)
utmp: fix reboot string
-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);
}