more fixes for working with char**s

This commit is contained in:
Dana Jansens 2003-04-14 22:31:22 +00:00
parent 4769c65a84
commit 5a95786263

View file

@ -380,8 +380,8 @@ void screen_update_desktop_names()
PROP_GETSS(ob_root, net_desktop_names, utf8, &screen_desktop_names);
for (i = 0; screen_desktop_names[i] && i < screen_num_desktops; ++i);
if (i < screen_num_desktops) {
for (i = 0; screen_desktop_names[i] && i <= screen_num_desktops; ++i);
if (i <= screen_num_desktops) {
screen_desktop_names = g_renew(char*, screen_desktop_names,
screen_num_desktops + 1);
screen_desktop_names[screen_num_desktops] = NULL;