From 843d49a47906bfc7b89553da0c5e4f06ed4c348b Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 19 Mar 2007 02:48:37 -0700 Subject: [PATCH] Fix merge-index An earlier conversion to run_command() from execlp() forgot that run_command() takes an array that is terminated with NULL. Signed-off-by: Junio C Hamano --- merge-index.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/merge-index.c b/merge-index.c index 6df43944b0..5599fd321b 100644 --- a/merge-index.c +++ b/merge-index.c @@ -2,7 +2,7 @@ #include "run-command.h" static const char *pgm; -static const char *arguments[8]; +static const char *arguments[9]; static int one_shot, quiet; static int err; @@ -36,6 +36,7 @@ static int merge_entry(int pos, const char *path) arguments[5] = ""; arguments[6] = ""; arguments[7] = ""; + arguments[8] = NULL; found = 0; do { static char hexbuf[4][60]; -- 2.11.4.GIT