summary refs log tree commit diff
path: root/iconvdata
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-02 06:17:16 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-02 06:17:16 +0000
commit2748878913c185e9b53913ae81de6d6d39fed3df (patch)
tree5d84fc1d6e61a556a28e8b1ee6131a00b972298c /iconvdata
parentafbf86d209f555381ceb07c58cc4e1741dee6d11 (diff)
downloadglibc-2748878913c185e9b53913ae81de6d6d39fed3df.tar.gz
glibc-2748878913c185e9b53913ae81de6d6d39fed3df.tar.xz
glibc-2748878913c185e9b53913ae81de6d6d39fed3df.zip
[BZ #2502]
	* iconvdata/utf-7.c: Don't require more than two characters after
	the '+' sign starting Unicode shifted sequences.
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/utf-7.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iconvdata/utf-7.c b/iconvdata/utf-7.c
index 6943833a67..b58b11fdcb 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;			      \