diff options
author | Gabriel Ivascu <gabrielivascu@gnome.org> | 2017-11-06 09:55:34 +0200 |
---|---|---|
committer | Gabriel Ivascu <gabrielivascu@gnome.org> | 2017-11-06 15:58:21 +0200 |
commit | 1bde93ab5f59a31b74d2378ff7c19b9b9c257613 (patch) | |
tree | 390fde3e2d3299f8687f3b2375850224bd41f2ae /lib | |
parent | 692548c1c02630f4953fc9b2ddf4e195e4d28ebe (diff) | |
download | epiphany-1bde93ab5f59a31b74d2378ff7c19b9b9c257613.tar.gz |
sync-crypto: Use PRIu64 macro to print unsigned longs
Prevent failure for platforms where longs are not 8 bytes.
https://bugzilla.gnome.org/show_bug.cgi?id=789656
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sync/ephy-sync-crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sync/ephy-sync-crypto.c b/lib/sync/ephy-sync-crypto.c index e837aec4b..9b17c89ca 100644 --- a/lib/sync/ephy-sync-crypto.c +++ b/lib/sync/ephy-sync-crypto.c @@ -919,7 +919,7 @@ ephy_sync_crypto_create_assertion (const char *certificate, /* Encode the header and body to base64 url safe and join them. */ expires_at = g_get_real_time () / 1000 + seconds * 1000; - body = g_strdup_printf ("{\"exp\": %lu, \"aud\": \"%s\"}", expires_at, audience); + body = g_strdup_printf ("{\"exp\": %"PRIu64", \"aud\": \"%s\"}", expires_at, audience); body_b64 = ephy_sync_utils_base64_urlsafe_encode ((guint8 *)body, strlen (body), TRUE); header_b64 = ephy_sync_utils_base64_urlsafe_encode ((guint8 *)header, strlen (header), TRUE); to_sign = g_strdup_printf ("%s.%s", header_b64, body_b64); |