Closed morgant closed 3 years ago
Looks like the strncmp()
comparison is actually okay, though I would've been a little more explicit with the comparison. That said, command
is getting clobbered sometime in Done()
in mlvwm/mlvwm.c
(Yes, it gets freed in FreeMenu()
.)
Fixed by strdup()
ing the command when sending it to Done()
so it doesn't get freed.
The
Restart
action accepts a window manager command to restart into, but it seems to only restartmlvwm
, never into an other such asfvwm
. ReviewingRestartSystem()
inmlvwm/functions.c
, it seems like thestrncmp()
condition is probably not correct. https://github.com/morgant/mlvwm/blob/e65b6ff507dc5666f22a8523bf41264d09cb72f2/mlvwm/functions.c#L676