[epiphany/wip/sync-rebase: 73/86] sync-crypto: Avoid failure if longs are not 8 bytes



commit cd566f1885579ad6081b92daeabd51f027961ae8
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Tue Aug 30 16:06:55 2016 +0300

    sync-crypto: Avoid failure if longs are not 8 bytes

 src/ephy-sync-crypto.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-sync-crypto.c b/src/ephy-sync-crypto.c
index bb238d6..1fc28e4 100644
--- a/src/ephy-sync-crypto.c
+++ b/src/ephy-sync-crypto.c
@@ -22,6 +22,7 @@
 #include "ephy-sync-utils.h"
 
 #include <glib/gstdio.h>
+#include <inttypes.h>
 #include <libsoup/soup.h>
 #include <nettle/aes.h>
 #include <string.h>
@@ -99,7 +100,7 @@ ephy_sync_crypto_hawk_artifacts_new (const char *app,
   artifacts->nonce = g_strdup (nonce);
   artifacts->port = g_strdup_printf ("%u", port);
   artifacts->resource = g_strdup (resource);
-  artifacts->ts = g_strdup_printf ("%ld", ts);
+  artifacts->ts = g_strdup_printf ("%" PRId64, ts);
 
   return artifacts;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]