diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1999-12-28 07:19:22 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1999-12-28 07:19:22 +0000 |
| commit | 495865e47d8876432b75faf731399f305f7fc302 (patch) | |
| tree | ea750ad38a1c1e1653d5fc93e8f28d852b5a8ce4 /sys/boot | |
| parent | 8266cbec26391df8045d628203503e45ffdc7f10 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/common/commands.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c index aa81abcf15b1..4a5ebfa4692c 100644 --- a/sys/boot/common/commands.c +++ b/sys/boot/common/commands.c @@ -176,8 +176,10 @@ command_help(int argc, char *argv[]) ((subtopic != NULL) && (s != NULL) && !strcmp(subtopic, s))) { /* exact match, print text */ while((fgetstr(buf, 80, hfd) >= 0) && (buf[0] != '#')) { - pager_output(buf); - pager_output("\n"); + if (pager_output(buf)) + break; + if (pager_output("\n")) + break; } } else if ((subtopic == NULL) && (s != NULL)) { /* topic match, list subtopics */ |
