X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=utmp-wtmp.c;h=cb3f201322edbef648ca68b7bf5cb8933d231711;hp=0cc9ceca84b3014b2a36c6ddd07736c5021713e7;hb=fbe9f3a92dcb585c14faf06ef9017f552e405222;hpb=d7fc909db3346b58a0ecce9c18d5ae68ffe7cb8b 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); }