dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit fbd6de8d8ea1019b2af005de9fed9b44a58c75e9
parent e6795882901730764c8d7d8938aa991d447335f8
Author: Greg Reagle <greg.reagle@umbc.edu>
Date:   Sun, 10 Nov 2013 22:54:13 -0500

dvtm.c: parse_args(): needs 2nd NULL

create() tests args[2], which was causing a segfault

Diffstat:
dvtm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dvtm.c b/dvtm.c @@ -1284,7 +1284,7 @@ parse_args(int argc, char *argv[]) { set_escdelay(100); for (arg = 1; arg < argc; arg++) { if (argv[arg][0] != '-') { - const char *args[] = { argv[arg], NULL }; + const char *args[] = { argv[arg], NULL, NULL }; if (!init) { setup(); init = true;