Merge branch '3736_mc_tmpdir'

* 3736_mc_tmpdir:
  Ticker #3736: mc_tmpdir() use a buffer of only 64 characters.
This commit is contained in:
Andrew Borodin 2016-12-07 09:50:25 +03:00
commit 87cc7baead

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;