diff --git a/libsrc/api/API.cpp b/libsrc/api/API.cpp index 2f64ee49..961b415c 100644 --- a/libsrc/api/API.cpp +++ b/libsrc/api/API.cpp @@ -181,7 +181,7 @@ bool API::setImage(ImageCmdData &data, hyperion::Components comp, QString &reply else { // check consistency of the size of the received data - if (static_cast(data.data.size()) != data.width * data.height * 3) + if (static_cast(data.data.size()) != static_cast(data.width) * static_cast(data.height) * 3) { replyMsg = "Size of image data does not match with the width and height"; return false;