]> git.ipfire.org Git - people/ms/systemd.git/commitdiff
utmp: fix reboot string
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 22:41:02 +0000 (00:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 22:41:02 +0000 (00:41 +0200)
utmp-wtmp.c

index 0cc9ceca84b3014b2a36c6ddd07736c5021713e7..cb3f201322edbef648ca68b7bf5cb8933d231711 100644 (file)
@@ -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);
 }