diff options
author | Bernhard Reutner-Fischer | 2008-05-05 14:48:13 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-05-05 14:48:13 +0000 |
commit | 378481ed1e0ae1d731243f8082d82013cf18c11e (patch) | |
tree | 9d98563eaa408d070cf7adb81780faccd4a8c1f9 /miscutils/last.c | |
parent | fc9fc1f9292861cd1621d884338a766289acdf4a (diff) | |
download | busybox-378481ed1e0ae1d731243f8082d82013cf18c11e.zip busybox-378481ed1e0ae1d731243f8082d82013cf18c11e.tar.gz |
- fix strncmp'ing "runlevel"
r21931 from trunk
Diffstat (limited to 'miscutils/last.c')
-rw-r--r-- | miscutils/last.c | 2 |
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) { |