From: Đoàn Trần Công Danh Date: Sun, 24 Jan 2021 16:07:57 +0000 (+0700) Subject: notmuch-show: use correct format specifier for ssize_t X-Git-Tag: 0.32_rc0~119 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=5648bebe6914073c31778d7342e223b9fef2a65f notmuch-show: use correct format specifier for ssize_t Signed-off-by: Đoàn Trần Công Danh --- diff --git a/notmuch-show.c b/notmuch-show.c index dd836add..c0498c66 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -909,7 +909,7 @@ format_part_raw (unused (const void *ctx), unused (sprinter_t *sp), } if (ssize > 0 && fwrite (buf, ssize, 1, stdout) != 1) { - fprintf (stderr, "Error: Write %ld chars to stdout failed\n", ssize); + fprintf (stderr, "Error: Write %zd chars to stdout failed\n", ssize); goto DONE; } }