[gnome-software/wip/kalev/gnome-3-22-prep: 48/52] steam: Fix an alignment warning when compiling on ARM
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/gnome-3-22-prep: 48/52] steam: Fix an alignment warning when compiling on ARM
- Date: Mon, 7 Nov 2016 09:48:49 +0000 (UTC)
commit 2619952bec72c87720c9c4a5fe844f388516ea4d
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 21 18:02:37 2016 +0100
steam: Fix an alignment warning when compiling on ARM
(cherry picked from commit d502cf29f5cdc71e8db7fd75861325c80bed13af)
src/plugins/gs-plugin-steam.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-steam.c b/src/plugins/gs-plugin-steam.c
index fd7e74e..06c08f6 100644
--- a/src/plugins/gs-plugin-steam.c
+++ b/src/plugins/gs-plugin-steam.c
@@ -80,7 +80,8 @@ gs_plugin_steam_token_kind_to_str (guint8 data)
static guint32
gs_plugin_steam_consume_uint32 (guint8 *data, gsize data_len, guint *idx)
{
- guint32 tmp = *((guint32 *) &data[*idx + 1]);
+ guint32 tmp;
+ memcpy (&tmp, &data[*idx + 1], 4);
*idx += 4;
return tmp;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]