git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit 3b15a55c523166015c31cddb20590fda0515bd58
parent ea3f45b7baa20782d7538df586cf1a357b60dc6a
Author: Rob King <jking@deadpixi.com>
Date:   Sun, 16 Apr 2017 01:36:11 -0500

Handle null initial parameters.

Diffstat:
Mvtparser.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vtparser.c b/vtparser.c @@ -83,10 +83,11 @@ collect(VTPARSER *v, wchar_t w) static void param(VTPARSER *v, wchar_t w) { + v->narg = v->narg? v->narg : 1; + if (w == L';') v->args[v->narg++] = 0; else if (v->narg < MAXPARAM){ - v->narg = v->narg? v->narg : 1; if (v->args[v->narg - 1] < 9999) v->args[v->narg - 1] = v->args[v->narg - 1] * 10 + (w - 0x30); }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.