From 3ad854caf7f9f61d57d15d8e211f507a5936f8e4 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 27 Sep 2006 08:15:11 +0000 Subject: (exec_command): Add extra spaces. --- tests/genfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/genfile.c b/tests/genfile.c index b4a8cea..3bb3816 100644 --- a/tests/genfile.c +++ b/tests/genfile.c @@ -718,8 +718,8 @@ exec_command (void) FIXME: This assumes that exec_argv does not use traditional tar options (without dash) */ exec_argc++; - exec_argv = xrealloc (exec_argv, exec_argc * sizeof (*exec_argv)); - memmove (exec_argv+2, exec_argv+1, (exec_argc-1)*sizeof (*exec_argv)); + exec_argv = xrealloc (exec_argv, (exec_argc + 1) * sizeof (*exec_argv)); + memmove (exec_argv+2, exec_argv+1, (exec_argc - 1) * sizeof (*exec_argv)); exec_argv[1] = "--checkpoint"; #ifdef SIGCHLD -- cgit v1.2.1