Fix a -Werror=format-security build failure
This commit is contained in:
parent
455e15ea58
commit
51ca770957
29
0001-Fix-a-gcc-Wformat-security-warning.patch
Normal file
29
0001-Fix-a-gcc-Wformat-security-warning.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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
|
||||||
|
|
@ -10,6 +10,7 @@ Summary: User Interface Designer for GTK+
|
|||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
URL: http://glade.gnome.org/
|
URL: http://glade.gnome.org/
|
||||||
Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.18/glade-%{version}.tar.xz
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.18/glade-%{version}.tar.xz
|
||||||
|
Patch0: 0001-Fix-a-gcc-Wformat-security-warning.patch
|
||||||
|
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
@ -60,6 +61,7 @@ developing applications that use Glade widget library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .format_security
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user