From 0f2e8dac34da4f1e5c4d6d0a3537226dd9e99f10 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Mon, 12 Dec 2022 18:04:11 +0900 Subject: [PATCH] aurum: fix using calloc instead of variable-sized array. C++ template doesn't support variable-sized array. Change-Id: I57b3fd7e2a117ead55ac705b867144885433d938 --- org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc index b9e5c0a..2a62457 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc @@ -50,7 +50,7 @@ TakeScreenshotCommand::TakeScreenshotCommand( std::ifstream ifs(path, std::ifstream::binary); ::aurum::RspTakeScreenshot rsp; int size = mDevice->getScreenSize().width * mDevice->getScreenSize().height; - char buf[size]; + char *buf = (char *) calloc(size, sizeof(char)); while (!ifs.eof()) { ifs.read(buf, size); -- 2.7.4