[gvfs] afp: Fix error message (-Wformat-security)



commit 62b46167bf1ddafe20085a6478fb2660a42e9bbf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 4 18:22:25 2012 +0200

    afp: Fix error message (-Wformat-security)
    
    We need to supply an %s somewhere in here to be secure.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682990
    
    Signed-off-by: Tomas Bzatek <tbzatek redhat com>

 daemon/gvfsafpserver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsafpserver.c b/daemon/gvfsafpserver.c
index c4af4fc..15976d1 100644
--- a/daemon/gvfsafpserver.c
+++ b/daemon/gvfsafpserver.c
@@ -1669,7 +1669,7 @@ g_vfs_afp_server_fill_info (GVfsAfpServer *server,
 
 invalid_reply:
   g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-               _("Unable to connect to the server. A communication problem occurred."),
+               _("Unable to connect to the server '%s'. A communication problem occurred."),
                server->priv->info.server_name);
 
   return FALSE;



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