diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-09 05:11:04 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-09 05:11:04 +0000 |
commit | f795d0f4180a3e46b93af72303d75bde80c11b8e (patch) | |
tree | 4d503170df61d4d017d04ad365e1f20ca339a4d3 /ext/nkf | |
parent | 8d92ac23d15da245404a586a48f390948e617697 (diff) | |
download | ruby-f795d0f4180a3e46b93af72303d75bde80c11b8e.tar.gz |
* ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
[nkf-bug:20079]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf')
-rw-r--r-- | ext/nkf/nkf-utf8/nkf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c index 06dfc74fcb..6877afe237 100644 --- a/ext/nkf/nkf-utf8/nkf.c +++ b/ext/nkf/nkf-utf8/nkf.c @@ -21,7 +21,7 @@ * 3. This notice may not be removed or altered from any source distribution. */ #define NKF_VERSION "2.1.1" -#define NKF_RELEASE_DATE "2010-04-28" +#define NKF_RELEASE_DATE "2010-08-08" #define COPY_RIGHT \ "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \ "Copyright (C) 1996-2010, The nkf Project." @@ -4635,7 +4635,7 @@ static const char basis_64[] = #define MIMEOUT_BUF_LENGTH 74 static struct { - char buf[MIMEOUT_BUF_LENGTH+1]; + unsigned char buf[MIMEOUT_BUF_LENGTH+1]; int count; } mimeout_state; @@ -4947,7 +4947,7 @@ mime_putc(nkf_char c) i = 0; for (; i < mimeout_state.count - len; ++i) { - if (!strncmp(mimeout_state.buf+i, str, len)) { + if (!strncmp((char *)(mimeout_state.buf+i), str, len)) { i += len - 2; break; } |