2424N/Ahttp://lists.research.att.com/pipermail/ast-developers/2014q1/003807.html
2424N/A---
2424N/Adiff --git a/src/cmd/ksh93/edit/edit.c b/src/cmd/ksh93/edit/edit.c
2424N/Aindex 769ba2e..4f6330e 100644
2424N/A--- a/src/cmd/ksh93/edit/edit.c
2424N/A+++ b/src/cmd/ksh93/edit/edit.c
2424N/A@@ -651,7 +651,8 @@ void ed_setup(register Edit_t *ep, int fd, int reedit)
2424N/A {
2424N/A int skip=0;
2424N/A ep->e_crlf = 0;
2424N/A- *pp++ = c;
2424N/A+ if (pp < ppmax)
2424N/A+ *pp++ = c;
2424N/A for(n=1; c = *last++; n++)
2424N/A {
2424N/A if(pp < ppmax)
2424N/Adiff --git a/src/cmd/ksh93/include/edit.h b/src/cmd/ksh93/include/edit.h
2424N/Aindex 795777d..145066d 100644
2424N/A--- a/src/cmd/ksh93/include/edit.h
2424N/A+++ b/src/cmd/ksh93/include/edit.h
2424N/A@@ -59,7 +59,7 @@
2424N/A #endif /* SHOPT_MULTIBYTE */
2424N/A
2424N/A #define TABSIZE 8
2424N/A-#define PRSIZE 160
2424N/A+#define PRSIZE 256
2424N/A #define MAXLINE 1024 /* longest edit line permitted */
2424N/A
2424N/A typedef struct _edit_pos
2424N/A