notmuch-show: use correct format specifier for ssize_t

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
Đoàn Trần Công Danh 2021-01-24 23:07:57 +07:00 committed by David Bremner
parent 6a7b61b1d5
commit 5648bebe69

View file

@ -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;
}
}