27dd63ed69
Reported by: krismail
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
Index: ces/unicode-1-1-utf-7.c
|
|
===================================================================
|
|
RCS file: /home/bbcvs/iconv/ces/unicode-1-1-utf-7.c,v
|
|
retrieving revision 1.2
|
|
diff -u -r1.2 unicode-1-1-utf-7.c
|
|
--- ces/unicode-1-1-utf-7.c 22 Mar 2005 16:41:03 -0000 1.2
|
|
+++ ces/unicode-1-1-utf-7.c 14 Dec 2006 22:47:58 -0000
|
|
@@ -233,7 +233,7 @@
|
|
if (*inbytesleft < 2)
|
|
return UCS_CHAR_NONE;
|
|
needbytes = 1;
|
|
- ch = char_type(*(++((unsigned char *)*inbuf)));
|
|
+ ch = char_type(*(++*inbuf));
|
|
(*inbytesleft) --;
|
|
case utf7_printable:
|
|
utf7_state[0] = 0;
|
|
@@ -249,7 +249,7 @@
|
|
(*inbytesleft) += needbytes;
|
|
return UCS_CHAR_NONE;
|
|
}
|
|
- switch (char_type(*(++(unsigned char *)*inbuf))) {
|
|
+ switch (char_type(*(++*inbuf))) {
|
|
case utf7_shift_out:
|
|
(*inbuf) ++;
|
|
(*inbytesleft) -= 2;
|
|
@@ -267,7 +267,7 @@
|
|
return UCS_CHAR_INVALID;
|
|
}
|
|
(*inbytesleft) --;
|
|
- return *((unsigned char *)*inbuf) ++;
|
|
+ return *(*inbuf)++;
|
|
#undef utf7_state
|
|
}
|
|
|