all repos — openbox @ 52b99477db675d51a110376a1829ed6d8b17ac49

openbox fork - make it a bit more like ryudo

set the values of the array at teh right indexes
Dana Jansens danakj@orodu.net
commit

52b99477db675d51a110376a1829ed6d8b17ac49

parent

7837faa3402faf2eff48adc5024509deb2be98ac

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/prop.copenbox/prop.c

@@ -294,7 +294,7 @@

*ret = g_new0(char*, count + 1); (*ret)[count] = NULL; /* null terminated list */ - for (it = strs; it; it = g_slist_next(it)) { + for (i = 0, it = strs; it; ++i, it = g_slist_next(it)) { (*ret)[i] = g_convert(it->data, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); /* make sure translation did not fail */

@@ -343,7 +343,7 @@ }

*ret = g_new0(char*, count + 1); - for (it = strs; it; it = g_slist_next(it)) { + for (i = 0, it = strs; it; ++i, it = g_slist_next(it)) { if (g_utf8_validate(it->data, -1, NULL)) (*ret)[i] = g_strdup(it->data); else