From f795d0f4180a3e46b93af72303d75bde80c11b8e Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 9 Aug 2010 05:11:04 +0000 Subject: * 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 --- ext/nkf/nkf-utf8/nkf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/nkf') 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; } -- cgit v1.2.3