diff options
author | bde <bde@FreeBSD.org> | 1995-04-15 23:10:59 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-04-15 23:10:59 +0000 |
commit | ea2ddb19e5450b2f4faf9053f3ffadf6a60ed5be (patch) | |
tree | 287eaae1a6f1be44e54bc84d236e67e812df8995 /usr.bin | |
parent | e0c2d192396e580549326eca4cba10cff1a1e158 (diff) | |
download | FreeBSD-src-ea2ddb19e5450b2f4faf9053f3ffadf6a60ed5be.zip FreeBSD-src-ea2ddb19e5450b2f4faf9053f3ffadf6a60ed5be.tar.gz |
Don't crash when there are too many items to fit on one screen.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/devmenu/devfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/devmenu/devfilter.c b/usr.bin/devmenu/devfilter.c index 9cfd366..873f87f 100644 --- a/usr.bin/devmenu/devfilter.c +++ b/usr.bin/devmenu/devfilter.c @@ -182,7 +182,7 @@ devmenu_common(const char *title, const char *hfile, char **devnames, name = resbuf; - if(dialog_menu((char *)title, prompt, 24, 78, nitems, nitems, items, + if(dialog_menu((char *)title, prompt, 24, 78, 18, nitems, items, resbuf, 0, 0) != 0) { name = "none"; } |