[gnome-software] steam: Fix an alignment warning when compiling on ARM
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] steam: Fix an alignment warning when compiling on ARM
- Date: Wed, 26 Oct 2016 11:12:20 +0000 (UTC)
commit d502cf29f5cdc71e8db7fd75861325c80bed13af
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 21 18:02:37 2016 +0100
steam: Fix an alignment warning when compiling on ARM
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 e64e3fc..94f523c 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]