From: NONAKA Kimihiro Date: Tue, 10 Mar 2009 17:39:38 +0000 (+0100) Subject: Fix crashes with 64bit time_t. Closes #3184. X-Git-Tag: neomutt-20160307~760^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1916d99f953275170f71bb043e704de518d44167;p=neomutt Fix crashes with 64bit time_t. Closes #3184. --- diff --git a/ChangeLog b/ChangeLog index fca1162f6..1d89f1756 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-03-09 12:04 +0100 Vincent Lefevre (4ce562b7f5d7) + + * mbyte.h: Unbreak compilation on OS X with --with-regex/--without-wc- + funcs. Closes #3149. + +2009-03-09 11:58 +0100 Rocco Rutte (f3a33b77dc90) + + * ChangeLog, mutt.h, regex.c: Unbreak compilation with --without-wc- + funcs on OS X 10.5.*, see #3149. + 2009-03-09 11:49 +0100 Rocco Rutte (bcf1e9692caf) * init.h: Fix 11cd72da743a diff --git a/mh.c b/mh.c index 53df87565..e795a02f7 100644 --- a/mh.c +++ b/mh.c @@ -1242,8 +1242,8 @@ int maildir_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr) omask = umask (mh_umask (dest)); FOREVER { - snprintf (path, _POSIX_PATH_MAX, "%s/tmp/%s.%ld.%u_%d.%s%s", - dest->path, subdir, time (NULL), (unsigned int)getpid (), + snprintf (path, _POSIX_PATH_MAX, "%s/tmp/%s.%lld.%u_%d.%s%s", + dest->path, subdir, (long long)time (NULL), (unsigned int)getpid (), Counter++, NONULL (Hostname), suffix); dprint (2, (debugfile, "maildir_open_new_message (): Trying %s.\n", @@ -1328,8 +1328,8 @@ int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr) /* construct a new file name. */ FOREVER { - snprintf (path, _POSIX_PATH_MAX, "%s/%ld.%u_%d.%s%s", subdir, - time (NULL), (unsigned int)getpid (), Counter++, + snprintf (path, _POSIX_PATH_MAX, "%s/%lld.%u_%d.%s%s", subdir, + (long long)time (NULL), (unsigned int)getpid (), Counter++, NONULL (Hostname), suffix); snprintf (full, _POSIX_PATH_MAX, "%s/%s", ctx->path, path);