From: handa Date: Thu, 8 Jul 2004 02:43:48 +0000 (+0000) Subject: (read_class_set_list): Allocate the array *set X-Git-Tag: REL-0-9-1~50 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a6b8aa5ae524021178ac6a22bc225c402f00ce91;p=m17n%2Flibotf.git (read_class_set_list): Allocate the array *set by OTF_CALLOC. --- diff --git a/src/otfopen.c b/src/otfopen.c index f6a0832..7b6288b 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -1351,7 +1351,7 @@ read_class_set_list (OTF *otf, OTF_Stream *stream, long offset, READ_UINT16 (stream, count); if (! count) OTF_ERROR (OTF_ERROR_TABLE, " (zero count)"); - OTF_MALLOC (*set, count, ""); + OTF_CALLOC (*set, count, ""); for (i = 0; i < count; i++) /* Offset can be zero. */ READ_OFFSET (stream, (*set)[i].offset);