* utilunix.c (mc_tmpdir): Convert uid to unsigned long for

pathname of the temporary directory.
This commit is contained in:
Roland Illig 2004-10-23 12:55:35 +00:00
parent 8d69563572
commit 11f8d4e2ea
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
2004-10-23 Roland Illig <roland.illig@gmx.de>
* complete.c (environ): Don't declare environ on Cygwin.
* utilunix.c (mc_tmpdir): Convert uid to int for pathname
of the temporary directory.
* utilunix.c (mc_tmpdir): Convert uid to unsigned long for
pathname of the temporary directory.
From Pavel Tsekov <ptsekov gmx net>.

View File

@ -325,8 +325,8 @@ mc_tmpdir (void)
g_snprintf (buffer, sizeof (buffer), "%s/mc-%s", sys_tmp,
pwd->pw_name);
else
g_snprintf (buffer, sizeof (buffer), "%s/mc-%d", sys_tmp,
(int) getuid ());
g_snprintf (buffer, sizeof (buffer), "%s/mc-%lu", sys_tmp,
(unsigned long) getuid ());
canonicalize_pathname (buffer);