Adjusted incorrect memcpy line in ewmh_del_icon, as suggested by

#1970489. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1554 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2010-01-18 08:02:24 +00:00
parent 19f88c925a
commit cf7d593ff8

View File

@ -520,8 +520,8 @@ ewmh_del_icon(Window wnd, int width, int height)
if (i != 0)
memcpy(new_set, cur_set, i * sizeof(unsigned long));
if (i != nitems - icon_size)
memcpy(new_set + i * sizeof(unsigned long),
cur_set + i * sizeof(unsigned long) + icon_size, nitems - icon_size);
memcpy(new_set + i, cur_set + i + icon_size,
(nitems - (i + icon_size)) * sizeof(unsigned long));
nitems -= icon_size;