]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - screen/patches/screen-4.0.1-args.patch
libunistring: Update to version 0.9.6
[people/amarx/ipfire-3.x.git] / screen / patches / screen-4.0.1-args.patch
1 --- a/ansi.c.orig 2003-12-04 10:59:05.000000000 -0500
2 +++ b/ansi.c 2003-12-04 10:59:20.000000000 -0500
3 @@ -559,7 +559,7 @@
4 {
5 case '0': case '1': case '2': case '3': case '4':
6 case '5': case '6': case '7': case '8': case '9':
7 - if (curr->w_NumArgs < MAXARGS)
8 + if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS)
9 {
10 if (curr->w_args[curr->w_NumArgs] < 100000000)
11 curr->w_args[curr->w_NumArgs] =
12 --- a/resize.c.old 2003-11-27 02:55:07.000000000 +0200
13 +++ b/resize.c 2003-11-27 02:58:33.000000000 +0200
14 @@ -682,6 +682,17 @@
15 if (wi == 0)
16 he = hi = 0;
17
18 + if (wi > 1000)
19 + {
20 + Msg(0, "Window width too large, truncated");
21 + wi = 1000;
22 + }
23 + if (he > 1000)
24 + {
25 + Msg(0, "Window height too large, truncated");
26 + he = 1000;
27 + }
28 +
29 if (p->w_width == wi && p->w_height == he && p->w_histheight == hi)
30 {
31 debug("ChangeWindowSize: No change.\n");