mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #4398: crash on quick view of archives.
* (extfs_cmd): make message null-terminated. * (sfs_vfmake): likewise. * (do_external_panelize): likewise. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0b86047c81
commit
ff26ce85f8
@ -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