diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-24 00:41:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-24 00:41:02 +0200 |
commit | 55e39f40f70e3e8476421b97c58ddb0a8c61a558 (patch) | |
tree | 7965df141d7bd3c059a5632dbe106d3f2aeefef1 /utmp-wtmp.c | |
parent | d7fc909db3346b58a0ecce9c18d5ae68ffe7cb8b (diff) |
utmp: fix reboot string
Diffstat (limited to 'utmp-wtmp.c')
-rw-r--r-- | utmp-wtmp.c | 2 |
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); } |