From: Gerd Hoffmann Date: Mon, 3 Jun 2013 08:36:54 +0000 (+0200) Subject: qxl: fix Coverity scan SIGN_EXTENSION error X-Git-Tag: v1.6.0-rc0~182^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfc10122fafc399654f11eed8dd3ceea7b569105;p=thirdparty%2Fqemu.git qxl: fix Coverity scan SIGN_EXTENSION error Cc: Markus Armbruster Signed-off-by: Gerd Hoffmann --- diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c index f511a622c67..269b1a75687 100644 --- a/hw/display/qxl-render.c +++ b/hw/display/qxl-render.c @@ -199,7 +199,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor) c->hot_y = cursor->header.hot_spot_y; switch (cursor->header.type) { case SPICE_CURSOR_TYPE_ALPHA: - size = cursor->header.width * cursor->header.height * sizeof(uint32_t); + size = sizeof(uint32_t) * cursor->header.width * cursor->header.height; memcpy(c->data, cursor->chunk.data, size); if (qxl->debug > 2) { cursor_print_ascii_art(c, "qxl/alpha");