From: Dana Jansens Date: Mon, 14 Apr 2003 22:31:22 +0000 (+0000) Subject: more fixes for working with char**s X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5a9578626392cd579ec3065c802dda2cbc7d0bf3;p=chaz%2Fopenbox more fixes for working with char**s --- diff --git a/openbox/screen.c b/openbox/screen.c index b30c44d0..82fb4750 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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;