From 03359ba0fe1b7053165702f253f90c7927aa56de Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Fri, 10 Jan 2014 20:29:42 +0000 Subject: [PATCH] =?UTF-8?q?-=20Applied=20a=20patch=20from=20Jaroslav=20?= =?UTF-8?q?=C5=A0karvada=20(FTBFS=20if=20"-Werror=3Dformat-security"=20fla?= =?UTF-8?q?g=20is=20used=20|=20https://bugzilla.redhat.com/show=5Fbug.cgi?= =?UTF-8?q?=3Fid=3D1037139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5229 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/network.c b/src/core/network.c index d7c1017c..5954d1fe 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -356,7 +356,7 @@ int net_receive(GIOChannel *handle, char *buf, int len) status = g_io_channel_read_chars(handle, buf, len, &ret, &err); if (err != NULL) { - g_warning(err->message); + g_warning("%s", err->message); g_error_free(err); } if (status == G_IO_STATUS_ERROR || status == G_IO_STATUS_EOF) @@ -377,7 +377,7 @@ int net_transmit(GIOChannel *handle, const char *data, int len) status = g_io_channel_write_chars(handle, (char *) data, len, &ret, &err); if (err != NULL) { - g_warning(err->message); + g_warning("%s", err->message); g_error_free(err); } if (status == G_IO_STATUS_ERROR)