summaryrefslogtreecommitdiff
path: root/hw/display
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-06-24 14:33:09 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-06-24 14:33:09 -0500
commit9fbbf0d1b16a0e3e4132b187c2beba458964ea98 (patch)
tree084af4af502603e1027253721af74b9b97506be5 /hw/display
parent89f204d2c60fbf3e0c5af1ff1681e57c9f057178 (diff)
parent5ad24e5f3b5968240d50fb2e5b6e19517b041052 (diff)
downloadqemu-9fbbf0d1b16a0e3e4132b187c2beba458964ea98.tar.gz
Merge remote-tracking branch 'spice/spice.v71' into staging
# By Gerd Hoffmann (1) and Hans de Goede (1) # Via Gerd Hoffmann * spice/spice.v71: spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850) qxl: fix Coverity scan SIGN_EXTENSION error Message-id: 1372060666-18182-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/display')
-rw-r--r--hw/display/qxl-render.c2
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");