freebsd-ports/x11-wm/windowmaker/files/patch-WINGs_wwindow.c
Doug Barton c4988264d4 On amd64 clicking the WPrefs.app can cause a crash.
Fix obtained partly from the PR and partly from the Debian RPM. The wmspec.c
fix was confirmed in the latest version of windowmaker in their repo.

PR:		ports/120284
Submitted by:	Hiromi Kimura <hiromi@tac.tsukuba.ac.jp>
2008-12-31 10:01:26 +00:00

19 lines
438 B
C

--- WINGs/wwindow.c
+++ WINGs/wwindow.c
@@ -254,14 +254,14 @@
setMiniwindow(WMWindow *win, RImage *image)
{
WMScreen *scr= win->view->screen;
- CARD32 *data;
+ long *data;
int x, y;
int o;
if (!image)
return;
- data = wmalloc((image->width * image->height + 2) * sizeof(CARD32));
+ data = wmalloc((image->width * image->height + 2) * sizeof(long));
o= 0;
data[o++] = image->width;