]> Dogcows Code - chaz/openbox/commitdiff
more fixes for working with char**s
authorDana Jansens <danakj@orodu.net>
Mon, 14 Apr 2003 22:31:22 +0000 (22:31 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 14 Apr 2003 22:31:22 +0000 (22:31 +0000)
openbox/screen.c

index b30c44d094b02cd2afc9e7abf56fcf6d2cbb7e42..82fb4750e1394eeabfec14929d5da7b81393e996 100644 (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;
This page took 0.02649 seconds and 4 git commands to generate.