Ticket #3660: unable to view archive content using F3.

(mc_popen): fix termination of command array.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-06-28 09:10:44 +03:00
parent aa79525bb8
commit 0c73ca195f
1 changed files with 1 additions and 1 deletions

View File

@ -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)