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:
d035528
)
man: fix parsing of "DEFINE pager xyz". Closes 8976
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 22 Aug 2016 19:41:05 +0000
(21:41 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 22 Aug 2016 19:41:05 +0000
(21:41 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/man.c
patch
|
blob
|
history
diff --git
a/miscutils/man.c
b/miscutils/man.c
index 58ed81955bd2318f8dba9d635b709c3b9dea1b10..f705dd31e3b7b07b43565728b80a741773e975ad 100644
(file)
--- a/
miscutils/man.c
+++ b/
miscutils/man.c
@@
-228,8
+228,8
@@
int man_main(int argc UNUSED_PARAM, char **argv)
if (!token[1])
continue;
if (strcmp("DEFINE", token[0]) == 0) {
- if (is_prefixed_with(
"pager", token[1]
)) {
- pager = xstrdup(skip_whitespace(token[1]
) + 5
);
+ if (is_prefixed_with(
token[1], "pager"
)) {
+ pager = xstrdup(skip_whitespace(token[1]
+ 5)
);
}
} else
if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */