svn commit: trunk/busybox/miscutils
aldot at busybox.net
aldot at busybox.net
Mon May 5 07:45:33 PDT 2008
Author: aldot
Date: 2008-05-05 07:45:32 -0700 (Mon, 05 May 2008)
New Revision: 21932
Log:
- fix strncmp'ing "runlevel". (Cristian Ionescu-Idbohrn)
Modified:
trunk/busybox/miscutils/last.c
Changeset:
Modified: trunk/busybox/miscutils/last.c
===================================================================
--- trunk/busybox/miscutils/last.c 2008-05-03 15:27:10 UTC (rev 21931)
+++ trunk/busybox/miscutils/last.c 2008-05-05 14:45:32 UTC (rev 21932)
@@ -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