Skip to content

Commit

Permalink
Fix broken diff-highlight on some platforms
Browse files Browse the repository at this point in the history
Fix issue with diff-highlight that the env variable is not null terminated

Refs #313

Signed-off-by: David Lin <dtwlin@google.com>
Signed-off-by: Jonas Fonseca <jonas.fonseca@gmail.com>
  • Loading branch information
dtwlin authored and jonas committed Nov 9, 2016
1 parent dfa26fd commit 1be95b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1be95b0

Please sign in to comment.