From 1be95b05ab6a80a90b0e7720a3a2fe3dda421837 Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 8 Nov 2016 19:39:53 -0800 Subject: [PATCH] Fix broken diff-highlight on some platforms Fix issue with diff-highlight that the env variable is not null terminated Refs #313 Signed-off-by: David Lin Signed-off-by: Jonas Fonseca --- src/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff.c b/src/diff.c index bf8035d0d..c390763e5 100644 --- a/src/diff.c +++ b/src/diff.c @@ -48,7 +48,7 @@ diff_init_highlight(struct view *view, struct diff_state *state) { if (opt_diff_highlight) { const char *argv[] = { opt_diff_highlight, NULL }; - char * const env[] = { "GIT_CONFIG=/dev/null" }; + char * const env[] = { "GIT_CONFIG=/dev/null", NULL }; struct io io; if (io_exec(&io, IO_RP, view->dir, env, argv, view->io.pipe)) {