diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-03 10:36:54 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 08:23:09 +0200 |
commit | bfc10122fafc399654f11eed8dd3ceea7b569105 (patch) | |
tree | 9de3dc097bc97c21e239de3d93c31b126b30c132 /hw/display/qxl-render.c | |
parent | 576156ffed72ab4feb0b752979db86ff8759a2a1 (diff) |
qxl: fix Coverity scan SIGN_EXTENSION error
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/qxl-render.c')
-rw-r--r-- | hw/display/qxl-render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c index f511a622c6..269b1a7568 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"); |