• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

nkfのGitリポジトリのfork


Commit MetaInfo

Revision3a807a23f27fd83f2bf621930f1a301e20ba1c78 (tree)
Time2010-01-29 10:17:04
AuthorNARUSE, Yui <naruse@user...>
CommiterNARUSE, Yui

Log Message

Fix allocating size.

bug in second previous commit.

Change Summary

Incremental Difference

--- a/nkf.c
+++ b/nkf.c
@@ -21,7 +21,7 @@
2121 * 3. This notice may not be removed or altered from any source distribution.
2222 */
2323 #define NKF_VERSION "2.1.1"
24-#define NKF_RELEASE_DATE "2010-01-25"
24+#define NKF_RELEASE_DATE "2010-01-29"
2525 #define COPY_RIGHT \
2626 "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
2727 "Copyright (C) 1996-2010, The nkf Project."
@@ -814,7 +814,7 @@ static nkf_buf_t *
814814 nkf_buf_new(int length)
815815 {
816816 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);
818818 buf->capa = length;
819819 buf->len = 0;
820820 return buf;