]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/readline/readline52-011
Merge remote-tracking branch 'stevee/axel-log-fix' into next
[ipfire-2.x.git] / src / patches / readline / readline52-011
1 READLINE PATCH REPORT
2 =====================
3
4 Readline-Release: 5.2
5 Patch-ID: readline52-011
6
7 Bug-Reported-by: Uwe Doering <gemini@geminix.org>
8 Bug-Reference-ID: <46F3DD72.2090801@geminix.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2007-09/msg00102.html
10
11 Bug-Description:
12
13 There is an off-by-one error in the code that buffers characters received
14 very quickly in succession, causing characters to be dropped.
15
16 Patch:
17
18 *** ../readline-5.2-patched/input.c 2007-08-25 13:47:10.000000000 -0400
19 --- input.c 2007-10-12 22:55:25.000000000 -0400
20 ***************
21 *** 155,159 ****
22 pop_index--;
23 if (pop_index < 0)
24 ! pop_index = ibuffer_len - 1;
25 ibuffer[pop_index] = key;
26 return (1);
27 --- 155,159 ----
28 pop_index--;
29 if (pop_index < 0)
30 ! pop_index = ibuffer_len;
31 ibuffer[pop_index] = key;
32 return (1);