mirror of
https://github.com/morgant/mlvwm.git
synced 2024-11-22 01:31:16 +00:00
Duplicate command string in RestartSystem() as it'll get freed in Done() before it's used. Issue #10
This commit is contained in:
parent
e65b6ff507
commit
09ea1b39d4
@ -674,7 +674,7 @@ void RestartSystem( char *action )
|
|||||||
|
|
||||||
top = SkipSpace( SkipNonSpace( action+6 ));
|
top = SkipSpace( SkipNonSpace( action+6 ));
|
||||||
if( strncmp( top, "mlvwm", 5 ) )
|
if( strncmp( top, "mlvwm", 5 ) )
|
||||||
Done( 1, top );
|
Done( 1, strdup(top) );
|
||||||
else
|
else
|
||||||
Done( 1, NULL );
|
Done( 1, NULL );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user