mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Ticker #3736: mc_tmpdir() use a buffer of only 64 characters.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
54a0ccecaa
commit
0cf8e8f6e0
@ -832,7 +832,7 @@ mc_mkstemps (vfs_path_t ** pname_vpath, const char *prefix, const char *suffix)
|
|||||||
const char *
|
const char *
|
||||||
mc_tmpdir (void)
|
mc_tmpdir (void)
|
||||||
{
|
{
|
||||||
static char buffer[64];
|
static char buffer[PATH_MAX];
|
||||||
static const char *tmpdir = NULL;
|
static const char *tmpdir = NULL;
|
||||||
const char *sys_tmp;
|
const char *sys_tmp;
|
||||||
struct passwd *pwd;
|
struct passwd *pwd;
|
||||||
|
Loading…
Reference in New Issue
Block a user