From: Junio C Hamano Date: Mon, 19 Mar 2007 09:48:37 +0000 (-0700) Subject: Fix merge-index X-Git-Tag: v1.5.1-rc1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=843d49a47906bfc7b89553da0c5e4f06ed4c348b;p=git.git 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 --- diff --git a/merge-index.c b/merge-index.c index 6df43944b..5599fd321 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];