source: trunk/dports/sysutils/screen/files/patch-maxargs @ 119587

Last change on this file since 119587 was 119587, checked in by cal@…, 5 years ago

screen: update to 4.2.1

File size: 427 bytes
Line 
1--- ansi.c.orig 2014-05-01 12:51:14.000000000 +0200
2+++ ansi.c      2014-05-01 21:33:29.000000000 +0200
3@@ -568,7 +568,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] =
Note: See TracBrowser for help on using the repository browser.