[network-manager-openvpn] properties: fix handling NULL terminated strv array comp_lzo_values (2)



commit 96f4de248d6d8852461f3bf51496ca85e2bd3a1e
Author: Thomas Haller <thaller redhat com>
Date:   Sat Feb 4 19:25:53 2017 +0100

    properties: fix handling NULL terminated strv array comp_lzo_values (2)
    
    *sigh*
    
    Fixes: f3ec272521ce7788c03c93f8f3baf99d33b167d8
    Fixes: a96ba5a40925651c0a53ffeff8e2c1fd4922b4a7

 properties/auth-helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index 132e399..d212874 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -1791,7 +1791,7 @@ advanced_dialog_new (GHashTable *hash, const char *contype)
        combo = GTK_WIDGET (gtk_builder_get_object (builder, "lzo_combo"));
        store = gtk_list_store_new (1, G_TYPE_STRING);
        active = 0;
-       for (i = 0; G_N_ELEMENTS (comp_lzo_values); i++) {
+       for (i = 0; i < G_N_ELEMENTS (comp_lzo_values); i++) {
                gtk_list_store_append (store, &iter);
                gtk_list_store_set (store, &iter,
                                    0, comp_lzo_values_conf_to_display (comp_lzo_values[i]),


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