зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
8d92ac23d1
Коммит
f795d0f418
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 9 14:10:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
|
||||
[nkf-bug:20079]
|
||||
|
||||
Mon Aug 9 06:52:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (sys_warning_1): show error message.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче