mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Merge branch '4398-quicview_segfault'
* 4398-quicview_segfault: Ticket #4398: crash on quick view of archives.
This commit is contained in:
commit
1a2682dfab
@ -334,6 +334,7 @@ do_external_panelize (char *command)
|
|||||||
/* init buffers before call of mc_pread() */
|
/* init buffers before call of mc_pread() */
|
||||||
external->out.len = MC_PIPE_BUFSIZE;
|
external->out.len = MC_PIPE_BUFSIZE;
|
||||||
external->err.len = MC_PIPE_BUFSIZE;
|
external->err.len = MC_PIPE_BUFSIZE;
|
||||||
|
external->err.null_term = TRUE;
|
||||||
|
|
||||||
mc_pread (external, &error);
|
mc_pread (external, &error);
|
||||||
|
|
||||||
|
@ -960,6 +960,8 @@ extfs_cmd (const char *str_extfs_cmd, const struct extfs_super_t *archive,
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pip->err.null_term = TRUE;
|
||||||
|
|
||||||
mc_pread (pip, &error);
|
mc_pread (pip, &error);
|
||||||
if (error != NULL)
|
if (error != NULL)
|
||||||
{
|
{
|
||||||
|
@ -228,6 +228,8 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pip->err.null_term = TRUE;
|
||||||
|
|
||||||
mc_pread (pip, &error);
|
mc_pread (pip, &error);
|
||||||
if (error != NULL)
|
if (error != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user