Module: check_mk
Branch: master
Commit: f3d982089fcc4cca293ec55add89891fe81efd01
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f3d982089fcc4c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 10 09:01:55 2015 +0100
cppcheck-induced cleanup: Fixed format string.
---
livestatus/src/OutputBuffer.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/livestatus/src/OutputBuffer.cc b/livestatus/src/OutputBuffer.cc
index c3b8c1e..bc1d1fe 100644
--- a/livestatus/src/OutputBuffer.cc
+++ b/livestatus/src/OutputBuffer.cc
@@ -116,7 +116,7 @@ void OutputBuffer::flush(int fd, int *termination_flag)
}
char header[17];
- snprintf(header, sizeof(header), "%03d %11d\n", _response_code, s);
+ snprintf(header, sizeof(header), "%03u %11d\n", _response_code, s);
writeData(fd, termination_flag, header, 16);
writeData(fd, termination_flag, buffer, s);
}