components/ksh93/patches/17824699.patch
changeset 4196 d697072a92f5
parent 4195 d88c5d15a4af
child 4197 67d7270f6817
equal deleted inserted replaced
4195:d88c5d15a4af 4196:d697072a92f5
     1 http://lists.research.att.com/pipermail/ast-developers/2014q1/003807.html
       
     2 ---
       
     3 diff --git a/src/cmd/ksh93/edit/edit.c b/src/cmd/ksh93/edit/edit.c
       
     4 index 769ba2e..4f6330e 100644
       
     5 --- a/src/cmd/ksh93/edit/edit.c
       
     6 +++ b/src/cmd/ksh93/edit/edit.c
       
     7 @@ -651,7 +651,8 @@ void	ed_setup(register Edit_t *ep, int fd, int reedit)
       
     8  			{
       
     9  				int skip=0;
       
    10  				ep->e_crlf = 0;
       
    11 -				*pp++ = c;
       
    12 +				if (pp < ppmax)
       
    13 +					*pp++ = c;
       
    14  				for(n=1; c = *last++; n++)
       
    15  				{
       
    16  					if(pp < ppmax)
       
    17 diff --git a/src/cmd/ksh93/include/edit.h b/src/cmd/ksh93/include/edit.h
       
    18 index 795777d..145066d 100644
       
    19 --- a/src/cmd/ksh93/include/edit.h
       
    20 +++ b/src/cmd/ksh93/include/edit.h
       
    21 @@ -59,7 +59,7 @@
       
    22  #endif /* SHOPT_MULTIBYTE */
       
    23  
       
    24  #define TABSIZE	8
       
    25 -#define PRSIZE	160
       
    26 +#define PRSIZE	256
       
    27  #define MAXLINE	1024		/* longest edit line permitted */
       
    28  
       
    29  typedef struct _edit_pos
       
    30