1 diff -u screen-4.0.2/input.c screen-4.0.2/input.c
2 --- screen-4.0.2/input.c 2006-02-22 23:38:20.000000000 +0200
3 +++ screen-4.0.2/input.c 2006-02-23 00:31:34.000000000 +0200
8 - char buf[101]; /* text buffer */
9 + char buf[MAX_INPUTLINE]; /* text buffer */
10 int len; /* length of the editible string */
11 int pos; /* cursor position in editable string */
17 - int inpmaxlen; /* 100, or less, if caller has shorter buffer */
18 + int inpmaxlen; /* MAX_INPUTLINE-1, or less, if caller has shorter buffer */
19 char *inpstring; /* the prompt */
20 int inpstringlen; /* length of the prompt */
21 int inpmode; /* INP_NOECHO, INP_RAW, INP_EVERY */
24 struct inpdata *inpdata;
28 + if (len > MAX_INPUTLINE - 1)
29 + len = MAX_INPUTLINE - 1;
30 if (!(mode & INP_NOECHO))
32 maxlen = flayer->l_width - 1 - strlen(istr);
33 diff -u screen-4.0.2/process.c screen-4.0.2/process.c
34 --- screen-4.0.2/process.c 2006-02-23 00:27:01.000000000 +0200
35 +++ screen-4.0.2/process.c 2006-02-23 00:32:27.000000000 +0200
37 ChangeAKA(fore, *args, strlen(*args));
40 - Input(":", 100, INP_COOKED, Colonfin, NULL);
41 + Input(":", MAX_INPUTLINE - 1, INP_COOKED, Colonfin, NULL);
46 Msg(0, "%s: password: window required", rc_name);
49 - Input("New screen password:", 100, INP_NOECHO, pass1, display ? (char *)D_user : (char *)users);
50 + Input("New screen password:", MAX_INPUTLINE - 1, INP_NOECHO, pass1, display ? (char *)D_user : (char *)users);
56 --- screen-4.0.2/screen.h~ 2006-02-23 00:27:51.000000000 +0200
57 +++ screen-4.0.2/screen.h 2006-02-23 00:31:32.000000000 +0200
62 +#define MAX_INPUTLINE 512