From 0c73ca195f97ef59dd20650e5c4c9e226852bf3d Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 28 Jun 2016 09:10:44 +0300 Subject: [PATCH] Ticket #3660: unable to view archive content using F3. (mc_popen): fix termination of command array. Signed-off-by: Andrew Borodin --- lib/utilunix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utilunix.c b/lib/utilunix.c index 049952525..4153bdd8c 100644 --- a/lib/utilunix.c +++ b/lib/utilunix.c @@ -510,7 +510,7 @@ mc_pipe_t * mc_popen (const char *command, GError ** error) { mc_pipe_t *p; - const char *const argv[] = { "/bin/sh", "sh", "-c", command, "\0" }; + const char *const argv[] = { "/bin/sh", "sh", "-c", command, NULL }; p = g_try_new (mc_pipe_t, 1); if (p == NULL) -- 2.11.4.GIT