From a6b8aa5ae524021178ac6a22bc225c402f00ce91 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 8 Jul 2004 02:43:48 +0000 Subject: [PATCH] (read_class_set_list): Allocate the array *set by OTF_CALLOC. --- src/otfopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.7.10.4