From: Mikael Magnusson Date: Sat, 8 Oct 2005 09:29:27 +0000 (+0000) Subject: final fixes? X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=6452fef9396abdb524bf45038eaaed879efaa6ea;p=chaz%2Fopenbox final fixes? --- 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];