From: Mira Grudzinska Date: Tue, 12 Oct 2021 19:00:19 +0000 (+0200) Subject: tvg_saver: fix the argument of the sizeof call X-Git-Tag: accepted/tizen/6.5/unified/20211103.015235~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0dcaa3942a137a5d0a4f338f16e30b9a54ae7b7;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git tvg_saver: fix the argument of the sizeof call We got the size of a pointer instead of the size of a whole table. Fixed now --- diff --git a/src/savers/tvg/tvgTvgSaver.cpp b/src/savers/tvg/tvgTvgSaver.cpp index b133aab..3866d6c 100644 --- a/src/savers/tvg/tvgTvgSaver.cpp +++ b/src/savers/tvg/tvgTvgSaver.cpp @@ -524,7 +524,7 @@ TvgBinCounter TvgSaver::serializePath(const Shape* shape, const Matrix* transfor auto cnt = writeData(&cmdCnt, SIZE(cmdCnt)); cnt += writeData(&ptsCnt, SIZE(ptsCnt)); - cnt += writeData(outCmds, SIZE(outCmds)); + cnt += writeData(outCmds, SIZE(TvgBinFlag) * cmdCnt); //transform? if (preTransform) {