Blob Blame History Raw
From 54a2ed675de586102462415fce72ed28aa7e2388 Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek@redhat.com>
Date: Fri, 7 Aug 2009 11:29:11 +0200
Subject: [PATCH] =?UTF-8?q?Bug=20589434=20=E2=80=93=20gvfsd-sftp=20crashed=20with=20SIGSEGV=20in=20strlen()?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Pass correct pointer to the choices struct
---
 daemon/gvfsbackendsftp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 3b510a7..b32d11b 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -1034,7 +1034,6 @@ handle_login (GVfsBackend *backend,
                strstr (buffer, "Key fingerprint:") != NULL)
         {
 	  const gchar *choices[] = {_("Log In Anyway"), _("Cancel Login")};
-	  const gchar *v_choices = (const gchar *)choices;
 	  const gchar *choice_string;
 	  gchar *hostname = NULL;
 	  gchar *fingerprint = NULL;
@@ -1055,7 +1054,7 @@ handle_login (GVfsBackend *backend,
 
 	  if (!g_mount_source_ask_question (mount_source,
 					    message,
-					    &v_choices,
+					    (const gchar **) &choices,
 					    2,
 					    &aborted,
 					    &choice) || 
-- 
1.6.4