~kevin8t8/mutt

b48233f72ff7ffdf1c7416f735ef0fb0c61248e2 — Remco Rijnders 21 days ago 8ccd96d
Use PRIu64 macro as format when printing uint64_t values
1 files changed, 2 insertions(+), 2 deletions(-)

M muttlib.c
M muttlib.c => muttlib.c +2 -2
@@ 1009,7 1009,7 @@ void _mutt_buffer_mktemp (BUFFER *buf, const char *prefix, const char *suffix,
  RANDOM64 random64;
  mutt_random_bytes((char *)random64.char_array, sizeof(random64));

  mutt_buffer_printf (buf, "%s/%s-%s-%d-%d-%lu%s%s",
  mutt_buffer_printf (buf, "%s/%s-%s-%d-%d-%"PRIu64"%s%s",
                      NONULL (Tempdir), NONULL (prefix), NONULL (Hostname),
                      (int) getuid (), (int) getpid (), random64.int_64,
                      suffix ? "." : "", NONULL (suffix));


@@ 1025,7 1025,7 @@ void _mutt_mktemp (char *s, size_t slen, const char *prefix, const char *suffix,
  RANDOM64 random64;
  mutt_random_bytes((char *) random64.char_array, sizeof(random64));

  size_t n = snprintf (s, slen, "%s/%s-%s-%d-%d-%lu%s%s",
  size_t n = snprintf (s, slen, "%s/%s-%s-%d-%d-%"PRIu64"%s%s",
                       NONULL (Tempdir), NONULL (prefix), NONULL (Hostname),
                       (int) getuid (), (int) getpid (), random64.int_64,
                       suffix ? "." : "", NONULL (suffix));