nkfのGitリポジトリのfork
修訂 | 71012057801fe0cdcf0ab9a136c7259e5409ca0e (tree) |
---|---|
時間 | 2010-08-08 22:56:31 |
作者 | NARUSE, Yui <naruse@user...> |
Commiter | NARUSE, Yui |
Fix type of mimeout_state.buf. [nkf-bug:20079]
It causes wrong cast.
@@ -21,7 +21,7 @@ | ||
21 | 21 | * 3. This notice may not be removed or altered from any source distribution. |
22 | 22 | */ |
23 | 23 | #define NKF_VERSION "2.1.1" |
24 | -#define NKF_RELEASE_DATE "2010-04-28" | |
24 | +#define NKF_RELEASE_DATE "2010-08-08" | |
25 | 25 | #define COPY_RIGHT \ |
26 | 26 | "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \ |
27 | 27 | "Copyright (C) 1996-2010, The nkf Project." |
@@ -4635,7 +4635,7 @@ static const char basis_64[] = | ||
4635 | 4635 | |
4636 | 4636 | #define MIMEOUT_BUF_LENGTH 74 |
4637 | 4637 | static struct { |
4638 | - char buf[MIMEOUT_BUF_LENGTH+1]; | |
4638 | + unsigned char buf[MIMEOUT_BUF_LENGTH+1]; | |
4639 | 4639 | int count; |
4640 | 4640 | } mimeout_state; |
4641 | 4641 |
@@ -4947,7 +4947,7 @@ mime_putc(nkf_char c) | ||
4947 | 4947 | i = 0; |
4948 | 4948 | |
4949 | 4949 | for (; i < mimeout_state.count - len; ++i) { |
4950 | - if (!strncmp(mimeout_state.buf+i, str, len)) { | |
4950 | + if (!strncmp((char *)(mimeout_state.buf+i), str, len)) { | |
4951 | 4951 | i += len - 2; |
4952 | 4952 | break; |
4953 | 4953 | } |
@@ -1032,6 +1032,9 @@ printf "%-40s", "[nkf-forum:47334] "; | ||
1032 | 1032 | printf "%-40s", "[nkf-bug:20079] "; |
1033 | 1033 | &test("$nkf -jSxM","\xBB \xBB","=?ISO-2022-JP?B?GyhJOxsoQiAbKEk7GyhC?="); |
1034 | 1034 | |
1035 | +printf "%-40s", "[nkf-bug:20079] "; | |
1036 | + &test("$nkf -SxMw8","\xBB \xBB","=?UTF-8?B?77u/7727IO+9uw==?="); | |
1037 | + | |
1035 | 1038 | printf "%-40s", "[nkf-forum:48850] "; |
1036 | 1039 | &test("$nkf -jSM", |
1037 | 1040 | "From: \x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0\x82\xA0" . |