aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2021-01-24 23:07:57 +0700
committerDavid Bremner <david@tethera.net>2021-02-05 10:07:04 -0400
commit5648bebe6914073c31778d7342e223b9fef2a65f (patch)
tree377837dc323a36f51a1f3b8d4f0f6e158da7feeb
parent6a7b61b1d50bf25ebce61fa58af1c195951b387c (diff)
notmuch-show: use correct format specifier for ssize_t
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
-rw-r--r--notmuch-show.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}