diff --git a/ChangeLog b/ChangeLog index 370d9055..99035af2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ Changes since version 0.61.0: ............................. +- fixed OPEN_MENU +- fixed crash when moving a shaded window with keyboard - fixed problem with window shortcut assignment from the menu - fixed problem with fonts in WINGs (Masahide -mac- NODA ) diff --git a/src/rootmenu.c b/src/rootmenu.c index 1bee7bf0..4a4cb69f 100644 --- a/src/rootmenu.c +++ b/src/rootmenu.c @@ -623,12 +623,10 @@ separateCommand(char *line, char ***file, char **command) count = WMGetBagItemCount(bag); if (count>0) { - int j; *file = wmalloc(sizeof(char*)*(count+1)); - i = count; (*file)[count] = NULL; - for (j = 0; j < count; j++) { - (*file)[j] = WMGetFromBag(bag, j); + for (i = 0; i < count; i++) { + (*file)[i] = WMGetFromBag(bag, i); } } WMFreeBag(bag);