From: j8takagi Date: Sat, 19 Mar 2011 13:21:35 +0000 (+0900) Subject: ソースの修正 X-Git-Tag: v0.1p26~2 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a0f09eed38f7de6aec049b47f89baef690ff7bc;p=YACASL2.git ソースの修正 --- diff --git a/src/cmd.c b/src/cmd.c index a8613e7..5930ad9 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -99,7 +99,7 @@ bool create_cmdtype_code() int i; cmdtabsize = comet2cmdsize; /* ハッシュ表のサイズ */ - cmdtype_code = calloc_chk(cmdtabsize, sizeof(CMDTAB), "cmdtype_code"); + cmdtype_code = calloc_chk(cmdtabsize, sizeof(CMDTAB **), "cmdtype_code"); for(i = 0; i < comet2cmdsize; i++) { hashval = hash_cmdtype(comet2cmd[i].name, comet2cmd[i].type); /* ハッシュ値の生成 */ p = malloc_chk(sizeof(CMDTAB), "cmdtype_code");