Ticker #3736: mc_tmpdir() use a buffer of only 64 characters.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Sorin Sbarnea 2016-12-06 17:19:04 +00:00 committed by Andrew Borodin
parent 54a0ccecaa
commit 0cf8e8f6e0

View File

@ -832,7 +832,7 @@ mc_mkstemps (vfs_path_t ** pname_vpath, const char *prefix, const char *suffix)
const char *
mc_tmpdir (void)
{
static char buffer[64];
static char buffer[PATH_MAX];
static const char *tmpdir = NULL;
const char *sys_tmp;
struct passwd *pwd;