tvg_saver: fix the argument of the sizeof call
authorMira Grudzinska <m.grudzinska@samsung.com>
Tue, 12 Oct 2021 19:00:19 +0000 (21:00 +0200)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 15 Oct 2021 00:42:27 +0000 (09:42 +0900)
We got the size of a pointer instead of the size of a whole table.
Fixed now

src/savers/tvg/tvgTvgSaver.cpp

index b133aab..3866d6c 100644 (file)
@@ -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) {