fix segfault with transparency

This commit is contained in:
Julien Danjou 2007-09-06 22:29:14 +02:00
parent bd5bef5acf
commit 2044f82761
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ uicb_settrans(Display *disp __attribute__ ((unused)),
(unsigned char **) &data);
if(data)
{
memcpy(&current_opacity, data, sizeof(double));
memcpy(&current_opacity, data, sizeof(unsigned int));
XFree((void *) data);
delta += ((current_opacity * 100.0) / 0xffffffff);
}