← Commit list

6b76e2345

Denys Vlasenko
Denys Vlasenko
2016-08-22
SUCCESS Duration: 188s

Subject

man: fix parsing of "DEFINE pager xyz". Closes 8976

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/man.c+2 -2
@@ -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"? */