1 --- screen-4.0.2/input.c~ 2003-09-08 17:25:37.000000000 +0300
2 +++ screen-4.0.2/input.c 2006-02-22 23:38:20.000000000 +0200
4 extern struct display *display;
5 extern struct mchar mchar_blank, mchar_so;
7 +#define MAX_INPUTLINE 512
10 - char buf[101]; /* text buffer */
11 + char buf[MAX_INPUTLINE]; /* text buffer */
12 int len; /* length of the editible string */
13 int pos; /* cursor position in editable string */
19 - int inpmaxlen; /* 100, or less, if caller has shorter buffer */
20 + int inpmaxlen; /* MAX_INPUTLINE-1, or less, if caller has shorter buffer */
21 char *inpstring; /* the prompt */
22 int inpstringlen; /* length of the prompt */
23 int inpmode; /* INP_NOECHO, INP_RAW, INP_EVERY */
26 struct inpdata *inpdata;
30 + if (len > MAX_INPUTLINE - 1)
31 + len = MAX_INPUTLINE;
32 if (!(mode & INP_NOECHO))
34 maxlen = flayer->l_width - 1 - strlen(istr);
35 --- screen-4.0.2/process.c~ 2006-02-23 00:05:06.000000000 +0200
36 +++ screen-4.0.2/process.c 2006-02-23 00:27:01.000000000 +0200
38 ChangeAKA(fore, *args, strlen(*args));
41 - Input(":", 100, INP_COOKED, Colonfin, NULL);
42 + Input(":", 512-1, INP_COOKED, Colonfin, NULL);
47 Msg(0, "%s: password: window required", rc_name);
50 - Input("New screen password:", 100, INP_NOECHO, pass1, display ? (char *)D_user : (char *)users);
51 + Input("New screen password:", 512-1, INP_NOECHO, pass1, display ? (char *)D_user : (char *)users);