- increased tmp file name hex string to 64 bit
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@308
e385b8ad-14ed-0310-8656-
cc95a2468c6d
void _mutt_mktemp (char *s, const char *src, int line)
{
void _mutt_mktemp (char *s, const char *src, int line)
{
- snprintf (s, _POSIX_PATH_MAX, "%s/muttng-%s-%d-%d-%d-%x", NONULL (Tempdir),
+ snprintf (s, _POSIX_PATH_MAX, "%s/muttng-%s-%d-%d-%d-%x%x", NONULL (Tempdir),
NONULL (Hostname), (int) getuid (), (int) getpid (), Counter++,
NONULL (Hostname), (int) getuid (), (int) getpid (), Counter++,
- (unsigned int) rand());
+ (unsigned int) rand(), (unsigned int) rand());
debug_print (1, ("%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s));
unlink (s);
}
debug_print (1, ("%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s));
unlink (s);
}