From 2748878913c185e9b53913ae81de6d6d39fed3df Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 May 2006 06:17:16 +0000 Subject: [BZ #2502] * iconvdata/utf-7.c: Don't require more than two characters after the '+' sign starting Unicode shifted sequences. --- iconvdata/utf-7.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iconvdata') diff --git a/iconvdata/utf-7.c b/iconvdata/utf-7.c index 6943833..b58b11f 100644 --- a/iconvdata/utf-7.c +++ b/iconvdata/utf-7.c @@ -44,7 +44,7 @@ A-Z a-z 0-9 ' ( ) , - . / : ? space tab lf cr */ -static const unsigned char direct_tab[128/8] = +static const unsigned char direct_tab[128 / 8] = { 0x00, 0x26, 0x00, 0x00, 0x81, 0xf3, 0xff, 0x87, 0xfe, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0x07 @@ -62,7 +62,7 @@ isdirect (uint32_t ch) ! " # $ % & * ; < = > @ [ ] ^ _ ` { | } */ -static const unsigned char xdirect_tab[128/8] = +static const unsigned char xdirect_tab[128 / 8] = { 0x00, 0x26, 0x00, 0x00, 0xff, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0x3f @@ -79,7 +79,7 @@ isxdirect (uint32_t ch) A-Z a-z 0-9 + / - */ -static const unsigned char xbase64_tab[128/8] = +static const unsigned char xbase64_tab[128 / 8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0xff, 0x03, 0xfe, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0x07 @@ -170,7 +170,7 @@ base64 (unsigned int i) } \ else if (__builtin_expect (ch == '+', 1)) \ { \ - if (__builtin_expect (inptr + 2 >= inend, 0)) \ + if (__builtin_expect (inptr + 2 > inend, 0)) \ { \ /* Not enough input available. */ \ result = __GCONV_INCOMPLETE_INPUT; \ -- cgit v1.1