get all the strings!

This commit is contained in:
Dana Jansens 2003-05-16 21:32:42 +00:00
parent f17b225daa
commit f8bbe46bce

View file

@ -294,7 +294,7 @@ gboolean prop_get_strings_locale(Window win, Atom prop, char ***ret)
g_strfreev(*ret); /* free what we did so far */ g_strfreev(*ret); /* free what we did so far */
break; /* the force is not strong with us */ break; /* the force is not strong with us */
} }
p = strchr(p, '\0'); p += strlen(p) + 1;
} }
g_free(raw); g_free(raw);
if (i == num) if (i == num)
@ -328,7 +328,7 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, char ***ret)
p = raw; p = raw;
for (i = 0; i < num; ++i) { for (i = 0; i < num; ++i) {
(*ret)[i] = g_strdup(p); (*ret)[i] = g_strdup(p);
p = strchr(p, '\0'); p += strlen(p) + 1;
} }
g_free(raw); g_free(raw);
return TRUE; return TRUE;