aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-05 14:48:13 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-05 14:48:13 +0000
commit378481ed1e0ae1d731243f8082d82013cf18c11e (patch)
tree9d98563eaa408d070cf7adb81780faccd4a8c1f9
parentfc9fc1f9292861cd1621d884338a766289acdf4a (diff)
downloadbusybox-w32-378481ed1e0ae1d731243f8082d82013cf18c11e.tar.gz
busybox-w32-378481ed1e0ae1d731243f8082d82013cf18c11e.tar.bz2
busybox-w32-378481ed1e0ae1d731243f8082d82013cf18c11e.zip
- fix strncmp'ing "runlevel"
r21931 from trunk
-rw-r--r--miscutils/last.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/last.c b/miscutils/last.c
index f823a1385..de2d2bb51 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -49,7 +49,7 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED)
49 ut.ut_type = SHUTDOWN_TIME; 49 ut.ut_type = SHUTDOWN_TIME;
50 else if (strncmp(ut.ut_user, "reboot", 6) == 0) 50 else if (strncmp(ut.ut_user, "reboot", 6) == 0)
51 ut.ut_type = BOOT_TIME; 51 ut.ut_type = BOOT_TIME;
52 else if (strncmp(ut.ut_user, "runlevel", 7) == 0) 52 else if (strncmp(ut.ut_user, "runlevel", 8) == 0)
53 ut.ut_type = RUN_LVL; 53 ut.ut_type = RUN_LVL;
54 } else { 54 } else {
55 if (ut.ut_name[0] == '\0' || strcmp(ut.ut_name, "LOGIN") == 0) { 55 if (ut.ut_name[0] == '\0' || strcmp(ut.ut_name, "LOGIN") == 0) {