Cross Reference: 17824699.patch
xref
: /
solaris-userland-s11u3
/
components
/
ksh93
/
patches
/
17824699.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2424
N/A
http://lists.research.att.com/pipermail/ast-developers/2014q1/003807.html
2424
N/A
---
2424
N/A
diff --git
a/src/cmd/ksh93/edit/edit.c
b/src/cmd/ksh93/edit/edit.c
2424
N/A
index 769ba2e..4f6330e 100644
2424
N/A
---
a/src/cmd/ksh93/edit/edit.c
2424
N/A
+++
b/src/cmd/ksh93/edit/edit.c
2424
N/A
@@ -651,7 +651,8 @@ void ed_setup(register Edit_t *ep, int fd, int reedit)
2424
N/A
{
2424
N/A
int skip=0;
2424
N/A
ep->e_crlf = 0;
2424
N/A
- *pp++ = c;
2424
N/A
+ if (pp < ppmax)
2424
N/A
+ *pp++ = c;
2424
N/A
for(n=1; c = *last++; n++)
2424
N/A
{
2424
N/A
if(pp < ppmax)
2424
N/A
diff --git
a/src/cmd/ksh93/include/edit.h
b/src/cmd/ksh93/include/edit.h
2424
N/A
index 795777d..145066d 100644
2424
N/A
---
a/src/cmd/ksh93/include/edit.h
2424
N/A
+++
b/src/cmd/ksh93/include/edit.h
2424
N/A
@@ -59,7 +59,7 @@
2424
N/A
#endif /* SHOPT_MULTIBYTE */
2424
N/A
2424
N/A
#define TABSIZE 8
2424
N/A
-#define PRSIZE 160
2424
N/A
+#define PRSIZE 256
2424
N/A
#define MAXLINE 1024 /* longest edit line permitted */
2424
N/A
2424
N/A
typedef struct _edit_pos
2424
N/A