projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9fc1f
)
- fix strncmp'ing "runlevel"
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Mon, 5 May 2008 14:48:13 +0000
(14:48 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Mon, 5 May 2008 14:48:13 +0000
(14:48 -0000)
r21931 from trunk
miscutils/last.c
patch
|
blob
|
history
diff --git
a/miscutils/last.c
b/miscutils/last.c
index f823a138509b4c7721565cc8782ceb0e719981e3..de2d2bb511a8856ca3f156a5b2a9a5188a0bc480 100644
(file)
--- 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) {