summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-05-05 14:45:32 +0000
committerBernhard Reutner-Fischer2008-05-05 14:45:32 +0000
commitc8f7a97f89d85c5f598b8dce9c58294ccfa8e17a (patch)
tree8542830ad7a5231c1f1d2e17decf86bc7b7e7df1 /miscutils
parent8abae8841019fcc75852131b2d1d16bf5710b4b7 (diff)
downloadbusybox-c8f7a97f89d85c5f598b8dce9c58294ccfa8e17a.zip
busybox-c8f7a97f89d85c5f598b8dce9c58294ccfa8e17a.tar.gz
- fix strncmp'ing "runlevel". (Cristian Ionescu-Idbohrn)
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/last.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/last.c b/miscutils/last.c
index f823a13..de2d2bb 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -49,7 +49,7 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED)
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) {