X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprop.c;h=d843e69dc5ea0473d3e6c409990de634665dd19b;hb=de1559a09497ae4ead44a6e70b556123a5bab35c;hp=fe21bc441884a9851e2ee0309db42137d26d3543;hpb=1fad2da07f7fed1d640d57a2c7c2f666ebb409c4;p=chaz%2Fopenbox diff --git a/openbox/prop.c b/openbox/prop.c index fe21bc44..d843e69d 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -206,7 +206,7 @@ static gboolean get_prealloc(Window win, Atom prop, Atom type, gint size, data[i] = xdata[i]; break; case 16: - ((gushort*)data)[i] = ((gushort*)xdata)[i]; + ((guint16*)data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)data)[i] = ((gulong*)xdata)[i]; @@ -245,7 +245,7 @@ static gboolean get_all(Window win, Atom prop, Atom type, gint size, (*data)[i] = xdata[i]; break; case 16: - ((gushort*)*data)[i] = ((gushort*)xdata)[i]; + ((guint16*)*data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)*data)[i] = ((gulong*)xdata)[i];