Module: check_mk
Branch: master
Commit: 30e100e2720b333f0788ea4534d6c4b17366c3ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=30e100e2720b33…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 4 10:18:02 2016 +0100
Fixed error message.
---
livestatus/src/unixcat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/unixcat.c b/livestatus/src/unixcat.c
index 911ae1a..42b194d 100644
--- a/livestatus/src/unixcat.c
+++ b/livestatus/src/unixcat.c
@@ -113,8 +113,8 @@ void *copy_thread(void *info) {
ssize_t bytes_written = write(to, buffer, bytes_to_write);
if (bytes_written == -1) {
fprintf(stderr,
- "Error: Cannot write %" PRIdMAX " bytes to %d:
%s\n",
- (intmax_t)bytes_written, to, strerror(errno));
+ "Error: Cannot write %" PRIuMAX " bytes to %d:
%s\n",
+ (uintmax_t)bytes_to_write, to, strerror(errno));
break;
}
buffer += bytes_written;