diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-05 04:24:21 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-05 18:15:22 +0100 |
commit | a635d450ccbd4bd4c4bc4a1f0a08e2786616f833 (patch) | |
tree | 4eb51a98e11cf35bcf577094f78515a6b02ef04e | |
parent | 770c51f2f1ad179018cd73c8e8c9d7f1b18c293d (diff) |
gtk: fix an invalid clipboard memory copy
-rw-r--r-- | gtk/channel-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/channel-main.c b/gtk/channel-main.c index db0e68b..8215338 100644 --- a/gtk/channel-main.c +++ b/gtk/channel-main.c @@ -525,7 +525,7 @@ static void agent_clipboard_notify(SpiceMainChannel *channel, msgsize = sizeof(VDAgentClipboard) + size; cb = spice_malloc0(msgsize); cb->type = type; - memcpy(cb->data, data, msgsize); + memcpy(cb->data, data, size); agent_msg_send(channel, VD_AGENT_CLIPBOARD, msgsize, cb); free(cb); |