network-manager-applet r647 - trunk/src/wireless-security



Author: dcbw
Date: Thu Apr  3 02:29:08 2008
New Revision: 647
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=647&view=rev

Log:
Fix index checking

Modified:
   trunk/src/wireless-security/ws-wep-key.c

Modified: trunk/src/wireless-security/ws-wep-key.c
==============================================================================
--- trunk/src/wireless-security/ws-wep-key.c	(original)
+++ trunk/src/wireless-security/ws-wep-key.c	Thu Apr  3 02:29:08 2008
@@ -62,8 +62,8 @@
 		memset (sec->keys[sec->cur_index], 0, sizeof (sec->keys[sec->cur_index]));
 
 	key_index = gtk_combo_box_get_active (GTK_COMBO_BOX (combo));
-	g_return_if_fail (key_index < 3);
-	g_return_if_fail (key_index > 0);
+	g_return_if_fail (key_index <= 3);
+	g_return_if_fail (key_index => 0);
 
 	/* Populate entry with key from new index */
 	gtk_entry_set_text (GTK_ENTRY (entry), sec->keys[key_index]);



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