void-packages/srcpkgs/vpcs/patches/readline.patch

12 lines
364 B
Diff

--- src/readline.c.orig 2017-04-21 00:27:54.248062134 -0500
+++ 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) {