12 lines
363 B
Diff
12 lines
363 B
Diff
--- a/src/readline.c 2017-04-21 00:27:54.248062134 -0500
|
|
+++ b/src/readline.c 2017-04-21 00:28:07.690155810 -0500
|
|
@@ -431,7 +431,7 @@
|
|
i = kb[0];
|
|
if (!isprint(i))
|
|
continue;
|
|
- if (rls->pos < strlen(rls->kbuffer) - 1) {
|
|
+ if (rls->pos < strlen(rls->kbuffer) + 1) {
|
|
j = strlen(rls->kbuffer);
|
|
/* avoid overflow */
|
|
if (j < rls->maxbuflen - 1) {
|