[PATCH] rdesktop segfault with libx11-6 1.0.3-7 by Mark Heily <mark@heily.com>

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1402 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2007-04-12 16:04:25 +00:00
parent 75bd1939f8
commit 8db4aee33e

2
xwin.c
View File

@ -3218,7 +3218,7 @@ ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
return; return;
image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0, image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
(char *) data, cx, cy, BitmapPad(g_display), cx * g_bpp / 8); (char *) data, cx, cy, g_bpp, 0);
if (g_ownbackstore) if (g_ownbackstore)
{ {