[Xfce4-commits] <xfce4-settings:master> Fix an alignment problem seen on PPC.
Nick Schermer
noreply at xfce.org
Tue Apr 24 22:14:01 CEST 2012
Updating branch refs/heads/master
to 21e15c9adbdf1959a55499e0257db7d58b6b6962 (commit)
from b741f2e159c3458fd96c6c99cfac5c4e6874bc09 (commit)
commit 21e15c9adbdf1959a55499e0257db7d58b6b6962
Author: Nick Schermer <nick at xfce.org>
Date: Tue Apr 24 22:11:44 2012 +0200
Fix an alignment problem seen on PPC.
xfsettingsd/xsettings.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xfsettingsd/xsettings.c b/xfsettingsd/xsettings.c
index b4a6ec8..7657465 100644
--- a/xfsettingsd/xsettings.c
+++ b/xfsettingsd/xsettings.c
@@ -725,7 +725,7 @@ xfce_xsettings_helper_setting_append (const gchar *name,
gsize value_len, value_len_pad;
const gchar *str = NULL;
guchar *needle;
- CARD16 type = -1;
+ guchar type = 0;
gint num;
name_len = strlen (name) - 1 /* -1 for the xfconf slash */;
@@ -786,7 +786,7 @@ xfce_xsettings_helper_setting_append (const gchar *name,
*/
/* setting type */
- *(CARD16 *)needle++ = type;
+ *needle++ = type;
/* unused */
*needle++ = 0;
More information about the Xfce4-commits
mailing list