Blob Blame Raw
From e5a29b08bb48b408c5e88fa5382f8253ca90a937 Mon Sep 17 00:00:00 2001
From: Richard Marko <rmarko@fedoraproject.org>
Date: Thu, 8 Oct 2015 15:03:26 +0200
Subject: [PATCH] abrt-retrace-client: use atoll for _size conversion

Otherwise we get

The size of your crash is 28.1 MiB, but the retrace server only accepts
crashes smaller or equal to 16.0 EiB.

(gdb) print settings->max_unpacked_size
$4 = -50331648
---
 src/plugins/abrt-retrace-client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/abrt-retrace-client.c b/src/plugins/abrt-retrace-client.c
index 0b67773..540cdc9 100644
--- a/src/plugins/abrt-retrace-client.c
+++ b/src/plugins/abrt-retrace-client.c
@@ -256,9 +256,9 @@ struct retrace_settings *get_settings()
         else if (0 == strcasecmp("max_running_tasks", row))
             settings->max_running_tasks = atoi(value);
         else if (0 == strcasecmp("max_packed_size", row))
-            settings->max_packed_size = atoi(value) * 1024 * 1024;
+            settings->max_packed_size = atoll(value) * 1024 * 1024;
         else if (0 == strcasecmp("max_unpacked_size", row))
-            settings->max_unpacked_size = atoi(value) * 1024 * 1024;
+            settings->max_unpacked_size = atoll(value) * 1024 * 1024;
         else if (0 == strcasecmp("supported_formats", row))
         {
             char *space;
-- 
2.5.0