[gvfs] Bug 589434 - gvfsd-sftp crashed with SIGSEGV in strlen()
- From: Tomas Bzatek <tbzatek src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] Bug 589434 - gvfsd-sftp crashed with SIGSEGV in strlen()
- Date: Mon, 10 Aug 2009 13:25:00 +0000 (UTC)
commit 46c5815654d18b7c4de0387207d6bce4a6f9787f
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Aug 10 15:22:46 2009 +0200
Bug 589434 - gvfsd-sftp crashed with SIGSEGV in strlen()
Remove unneeded typecast causing segfaults
daemon/gvfsbackendsftp.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 3b510a7..f810b31 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,
+ choices,
2,
&aborted,
&choice) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]