blob: feeed9434e76c71d7576c751eea91888fdbf47c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ah,v 1.2 1998/08/07 11:10:15 agc Exp $
--- textbox.c.orig Fri Jan 23 17:37:13 1998
+++ textbox.c Fri Jan 23 17:37:12 1998
@@ -45,6 +45,11 @@
char search_term[MAX_LEN + 1], *tempptr, *found;
WINDOW *dialog, *text;
+ if (height < 0 || width < 0) {
+ fprintf(stderr, "\nAutosizing is impossible in dialog_textbox().\n");
+ return(-1);
+ }
+
search_term[0] = '\0'; /* no search term entered yet */
/* Open input file for reading */
|