mirror of git://sourceware.org/git/glibc.git
Fix bug in previous tcvn5712 commit e64d2de52
.
[BZ #13691] * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using inptr and inend, rather than using last_ch.
This commit is contained in:
parent
135ffda8b8
commit
39c59c3572
|
@ -1,3 +1,9 @@
|
||||||
|
2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
[BZ #13691]
|
||||||
|
* iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
|
||||||
|
inptr and inend, rather than using last_ch.
|
||||||
|
|
||||||
2012-04-02 David S. Miller <davem@davemloft.net>
|
2012-04-02 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
|
With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
|
||||||
|
|
|
@ -378,8 +378,9 @@ static const struct
|
||||||
/* Determine whether there is a buffered character pending. */ \
|
/* Determine whether there is a buffered character pending. */ \
|
||||||
last_ch = *statep >> 3; \
|
last_ch = *statep >> 3; \
|
||||||
\
|
\
|
||||||
/* We have to buffer ch if it is a possible match in comp_table_data. */ \
|
/* We have to buffer ch if it is a possible match in comp_table_data \
|
||||||
must_buffer_ch = last_ch && (ch >= 0x0041 && ch <= 0x01b0); \
|
and if it isn't the last char of the string. */ \
|
||||||
|
must_buffer_ch = (ch >= 0x0041 && ch <= 0x01b0) && (inptr + 1 != inend); \
|
||||||
\
|
\
|
||||||
if (last_ch) \
|
if (last_ch) \
|
||||||
{ \
|
{ \
|
||||||
|
|
Loading…
Reference in New Issue