mirror of https://github.com/MidnightCommander/mc
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:
parent
aa79525bb8
commit
0c73ca195f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue