[vinagre] Fixed recent connection crashing



commit 43b970a81c1d5a0cd5aeac333206abd602d124a4
Author: Jonh Wendell <jwendell gnome org>
Date:   Thu May 28 14:25:00 2009 -0300

    Fixed recent connection crashing
---
 src/vinagre-connection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vinagre-connection.c b/src/vinagre-connection.c
index 52b5daf..748600c 100644
--- a/src/vinagre-connection.c
+++ b/src/vinagre-connection.c
@@ -524,8 +524,8 @@ protocol_by_name (const gchar *protocol)
 {
   gint i;
 
-  for (i=0; i<VINAGRE_CONNECTION_PROTOCOL_INVALID; i++)
-    if (g_strcmp0 (vinagre_connection_protos[i], protocol) == 0)
+  for (i=1; i<VINAGRE_CONNECTION_PROTOCOL_INVALID; i++)
+    if (g_strcmp0 (vinagre_connection_protos[i-1], protocol) == 0)
       return i;
 
   return VINAGRE_CONNECTION_PROTOCOL_INVALID;



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