forked from pool/monitoring-plugins
1555f5b100
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=4
14 lines
624 B
Diff
14 lines
624 B
Diff
Index: monitoring-plugins-2.0/plugins/check_ntp.c
|
|
===================================================================
|
|
--- monitoring-plugins-2.0.orig/plugins/check_ntp.c
|
|
+++ monitoring-plugins-2.0/plugins/check_ntp.c
|
|
@@ -616,7 +616,7 @@ double jitter_request(const char *host,
|
|
if (bytes_read != ntp_cm_ints + req.count)
|
|
die(STATE_UNKNOWN, _("Invalid NTP response: %d bytes read does not equal %d plus %d data segment"), bytes_read, ntp_cm_ints, req.count);
|
|
/* else null terminate */
|
|
- strncpy(req.data[req.count], "\0", 1);
|
|
+ req.data[req.count] = "\0";
|
|
|
|
DBG(print_ntp_control_message(&req));
|
|
|