summaryrefslogtreecommitdiff
path: root/gnu/lib/libdialog/prgbox.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-01-30 14:11:58 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-01-30 14:11:58 +0000
commit255ec70534cbcfc3acc5ca510233b09dc093e700 (patch)
tree8fef152ce7e55c355dc552942299c434c3426349 /gnu/lib/libdialog/prgbox.c
parent7cb18415b8a370eef92a029067988617b4eb84f3 (diff)
Notes
Diffstat (limited to 'gnu/lib/libdialog/prgbox.c')
-rw-r--r--gnu/lib/libdialog/prgbox.c2
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)