From 2044f82761e0d2bd5587119892a79370d72615bd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 6 Sep 2007 22:29:14 +0200 Subject: [PATCH] fix segfault with transparency --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index ee4b1fa87..ee5a0d380 100644 --- a/client.c +++ b/client.c @@ -628,7 +628,7 @@ uicb_settrans(Display *disp __attribute__ ((unused)), (unsigned char **) &data); if(data) { - memcpy(¤t_opacity, data, sizeof(double)); + memcpy(¤t_opacity, data, sizeof(unsigned int)); XFree((void *) data); delta += ((current_opacity * 100.0) / 0xffffffff); }