glade/0001-Fix-a-gcc-Wformat-security-warning.patch
2014-03-25 12:22:23 +01:00

30 lines
907 B
Diff

From ade333ad8989e8489ca281b3f2481695ee9e788a Mon Sep 17 00:00:00 2001
From: Kalev Lember <kalevlember@gmail.com>
Date: Tue, 25 Mar 2014 11:35:15 +0100
Subject: [PATCH] Fix a gcc -Wformat-security warning
This fixes the 32 bit build on distros that use -Werror=format-security.
https://bugzilla.gnome.org/show_bug.cgi?id=727014
---
src/glade-http.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glade-http.c b/src/glade-http.c
index ebd217f..3a29b4e 100644
--- a/src/glade-http.c
+++ b/src/glade-http.c
@@ -185,7 +185,8 @@ on_write_ready (GObject *source, GAsyncResult *res, gpointer data)
if (priv->data->len != count)
{
- g_warning ("priv->data_size = %ld, write = %ld", priv->data->len, count);
+ g_warning ("priv->data_size = %" G_GSIZE_FORMAT ", write = %" G_GSIZE_FORMAT,
+ priv->data->len, count);
return;
}
--
1.9.0