diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 09:54:55 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 09:54:55 (GMT) |
commit | ff542df44c26170afbe63a1da712264c91114e0c (patch) | |
tree | 81dd62e8885f3b3aba0824efe38abc0ffef1b7cb /plugins/check_real.c | |
parent | aa1844e49b33eaf057778c828afecb095b1a2226 (diff) | |
parent | 063bc4e71d168e59437068fc386c9c3e9e25f4c6 (diff) | |
download | monitoring-plugins-ff542df44c26170afbe63a1da712264c91114e0c.tar.gz |
Merge branch 'maint'
* maint:
NEWS: Modify list of changes for 2.1.1 release
Prepare release
THANKS.in: Add new authors
NEWS: Updating all the fixes
check_tcp: fix help description regarding escape option
check_ntp: Nul-terminate jitter data
Revert "plugins/check_ntp.c - Verify struct from response"
check_real: fix null termination
check_ntp: fix null termination
check_apt: fix memset
Conflicts:
NEWS
Diffstat (limited to 'plugins/check_real.c')
-rw-r--r-- | plugins/check_real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c index e7ab9d0..00bd4d2 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c | |||
@@ -178,7 +178,7 @@ main (int argc, char **argv) | |||
178 | 178 | ||
179 | /* watch for the REAL connection string */ | 179 | /* watch for the REAL connection string */ |
180 | result = recv (sd, buffer, MAX_INPUT_BUFFER - 1, 0); | 180 | result = recv (sd, buffer, MAX_INPUT_BUFFER - 1, 0); |
181 | buffer[result] = "\0"; /* null terminate recieved buffer */ | 181 | buffer[result] = '\0'; /* null terminate recieved buffer */ |
182 | 182 | ||
183 | /* return a CRITICAL status if we couldn't read any data */ | 183 | /* return a CRITICAL status if we couldn't read any data */ |
184 | if (result == -1) { | 184 | if (result == -1) { |