From 7922aef03d9c2ae3549fddb7b238447e78dcdfa2 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 12 Jun 2011 09:51:25 +0000 Subject: [PATCH] libebml: code cleaning git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@757 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- src/EbmlBinary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EbmlBinary.cpp b/src/EbmlBinary.cpp index 288ca5e..9642eeb 100644 --- a/src/EbmlBinary.cpp +++ b/src/EbmlBinary.cpp @@ -92,9 +92,9 @@ filepos_t EbmlBinary::ReadData(IOCallback & input, ScopeMode ReadFully) return GetSize(); } - Data = (binary *)malloc(GetSize() * sizeof(binary)); + Data = (binary *)malloc(GetSize()); if (Data == NULL) - throw CRTError(std::string("Error allocating data")); + throw CRTError(std::string("Error allocating data")); SetValueIsSet(); return input.read(Data, GetSize()); }