diff --git a/NEWS b/NEWS index 9fa489b83..2a2f5af01 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,11 @@ For full details, see the git log at: https://github.com/ksh93/ksh Any uppercase BUG_* names are modernish shell bug IDs. +2021-01-08: + +- Fixed a crash on exceeding the maximum size of the $PS1 prompt. + The maximum size is also increased from 160 to 256 bytes. + 2021-01-07: - Fixed a crash that could occur while ksh updated ${.sh.match}. diff --git a/src/cmd/ksh93/edit/edit.c b/src/cmd/ksh93/edit/edit.c index 0f23b3103..e19a7d277 100644 --- a/src/cmd/ksh93/edit/edit.c +++ b/src/cmd/ksh93/edit/edit.c @@ -658,7 +658,8 @@ void ed_setup(register Edit_t *ep, int fd, int reedit) { int skip=0; ep->e_crlf = 0; - *pp++ = c; + if(pp