blob: 81e0dfa5dbf443b5f1ecde055995d2003b4d7151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- guage.c.orig Fri Jan 23 17:37:12 1998
+++ guage.c Fri Jan 23 17:37:12 1998
@@ -38,6 +38,11 @@
char prompt_buf[1024];
WINDOW *dialog;
+ if (height < 0 || width < 0) {
+ fprintf(stderr, "\nAutosizing is impossible in dialog_textbox().\n");
+ return(-1);
+ }
+
/* center dialog box on screen */
x = (COLS - width) / 2;
y = (LINES - height) / 2;
|