mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 655da5387254ddb2b254193d2054dd162873b12c parent 44bcf061d287fea745bee24d156a4c7dcfeff027 Author: Rob King <jking@deadpixi.com> Date: Tue, 25 Apr 2017 11:47:49 -0500 Fix NULL pointer dereference on RC without prior SC. Diffstat:
| M | Makefile | 2 | +- |
| M | mtm.c | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,5 +1,5 @@ CC := gcc -CFLAGS ?= -O3 -std=c99 -Wall -Wextra -pedantic +CFLAGS ?= -g -std=c99 -Wall -Wextra -pedantic FEATURES ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED HEADERS ?= LIBPATH ?= diff --git a/mtm.c b/mtm.c @@ -789,7 +789,7 @@ newnode(node_t t, NODE *p, int y, int x, int h, int w) /* Create a new node. */ if (!n || !tabs || h < 2 || w < 2) return free(n), free(tabs), NULL; - n->gs100 = n->gc = n->g0 = cset_ascii; + n->gs100 = n->gs = n->gc = n->g0 = cset_ascii; n->g1 = cset_graphics; n->t = t; n->pt = -1;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.