nkfのGitリポジトリのfork
Revision | 3a807a23f27fd83f2bf621930f1a301e20ba1c78 (tree) |
---|---|
Time | 2010-01-29 10:17:04 |
Author | NARUSE, Yui <naruse@user...> |
Commiter | NARUSE, Yui |
Fix allocating size.
bug in second previous commit.
@@ -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-01-25" | |
24 | +#define NKF_RELEASE_DATE "2010-01-29" | |
25 | 25 | #define COPY_RIGHT \ |
26 | 26 | "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \ |
27 | 27 | "Copyright (C) 1996-2010, The nkf Project." |
@@ -814,7 +814,7 @@ static nkf_buf_t * | ||
814 | 814 | nkf_buf_new(int length) |
815 | 815 | { |
816 | 816 | nkf_buf_t *buf = nkf_xmalloc(sizeof(nkf_buf_t)); |
817 | - buf->ptr = nkf_xmalloc(length); | |
817 | + buf->ptr = nkf_xmalloc(sizeof(nkf_char) * length); | |
818 | 818 | buf->capa = length; |
819 | 819 | buf->len = 0; |
820 | 820 | return buf; |