svn commit: branches/busybox_1_10_stable/miscutils

aldot at busybox.net aldot at busybox.net
Mon May 5 14:48:13 UTC 2008


Author: aldot
Date: 2008-05-05 07:48:13 -0700 (Mon, 05 May 2008)
New Revision: 21933

Log:
- fix strncmp'ing "runlevel"
  r21931 from trunk


Modified:
   branches/busybox_1_10_stable/miscutils/last.c


Changeset:
Modified: branches/busybox_1_10_stable/miscutils/last.c
===================================================================
--- branches/busybox_1_10_stable/miscutils/last.c	2008-05-05 14:45:32 UTC (rev 21932)
+++ branches/busybox_1_10_stable/miscutils/last.c	2008-05-05 14:48:13 UTC (rev 21933)
@@ -49,7 +49,7 @@
 				ut.ut_type = SHUTDOWN_TIME;
 			else if (strncmp(ut.ut_user, "reboot", 6) == 0)
 				ut.ut_type = BOOT_TIME;
-			else if (strncmp(ut.ut_user, "runlevel", 7) == 0)
+			else if (strncmp(ut.ut_user, "runlevel", 8) == 0)
 				ut.ut_type = RUN_LVL;
 		} else {
 			if (ut.ut_name[0] == '\0' || strcmp(ut.ut_name, "LOGIN") == 0) {




More information about the busybox-cvs mailing list