[git commit] man: fix parsing of "DEFINE pager xyz". Closes 8976

Denys Vlasenko vda.linux at googlemail.com
Mon Aug 22 19:41:05 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=6b76e2345490a1f65423b72580f84d09b3983ab6
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/man.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/miscutils/man.c b/miscutils/man.c
index 58ed819..f705dd3 100644
--- 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"? */


More information about the busybox-cvs mailing list