diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-30 14:11:58 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-01-30 14:11:58 +0000 |
| commit | 255ec70534cbcfc3acc5ca510233b09dc093e700 (patch) | |
| tree | 8fef152ce7e55c355dc552942299c434c3426349 /gnu/lib/libdialog/msgbox.c | |
| parent | 7cb18415b8a370eef92a029067988617b4eb84f3 (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog/msgbox.c')
| -rw-r--r-- | gnu/lib/libdialog/msgbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/msgbox.c b/gnu/lib/libdialog/msgbox.c index 50f6c13b2057..f8ca26fc5571 100644 --- a/gnu/lib/libdialog/msgbox.c +++ b/gnu/lib/libdialog/msgbox.c @@ -36,9 +36,11 @@ int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int w height = strheight(prompt)+2+2*(!!pause); if (width < 0) { i = strwidth(prompt); - j = strwidth(title); + j = ((title != NULL) ? strwidth(title) : 0); width = MAX(i,j)+4; } + if (pause) + width = MAX(width,10); if (width > COLS) width = COLS; |
