Blob Blame Raw
From 97633ab28bef2e65032fb81063922e3106dd135b Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 28 Oct 2015 00:21:12 +0100
Subject: [PATCH] dbus: ensure expected bytes width of DBus numbers

t - UINT64 - guint64 (unsigned long is not wide enough on 32bit architectures)

Resolves: rhbz#1256456

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/dbus/abrt-dbus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dbus/abrt-dbus.c b/src/dbus/abrt-dbus.c
index 44778a2..500ddb2 100644
--- a/src/dbus/abrt-dbus.c
+++ b/src/dbus/abrt-dbus.c
@@ -625,8 +625,8 @@ static void handle_method_call(GDBusConnection *connection,
 
             g_variant_builder_add(response_builder, "{s(its)}",
                                                     element_name,
-                                                    element_info->flags,
-                                                    size,
+                                                    (gint32)element_info->flags,
+                                                    (guint64)size,
                                                     element_info->content);
         }
 
-- 
2.6.3