diff options
Diffstat (limited to 'gnu/lib/libdialog/prgbox.c')
| -rw-r--r-- | gnu/lib/libdialog/prgbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/prgbox.c b/gnu/lib/libdialog/prgbox.c index 53275bfd704e..f2c7c6a5fb99 100644 --- a/gnu/lib/libdialog/prgbox.c +++ b/gnu/lib/libdialog/prgbox.c @@ -39,6 +39,8 @@ int dialog_prgbox(unsigned char *title, const unsigned char *line, int height, i fprintf(stderr, "\nAutosizing is impossible in dialog_prgbox().\n"); exit(-1); } + width = MAX(width,10); + if (width > COLS) width = COLS; if (height > LINES) |
