diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2014-11-27 00:03:23 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-27 00:51:46 +0100 |
commit | 30f0eeed578a1606eb53e135c1c5417d61d56295 (patch) | |
tree | 0b2205eeb1faa129b2cf549ca82cf7a31124050d /plugins | |
parent | a4a1b37be0ff96492d13e87ce59c82482d961f56 (diff) | |
download | monitoring-plugins-30f0eeed578a1606eb53e135c1c5417d61d56295.tar.gz |
check_real: fix null termination
Fix null termination introduced by commit b61f51a ("plugins/check_real.c - recv string null terminate").
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'plugins')
-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 36f64134..1816bf56 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -178,7 +178,7 @@ main (int argc, char **argv) /* watch for the REAL connection string */ result = recv (sd, buffer, MAX_INPUT_BUFFER - 1, 0); - buffer[result] = "\0"; /* null terminate recieved buffer */ + buffer[result] = '\0'; /* null terminate recieved buffer */ /* return a CRITICAL status if we couldn't read any data */ if (result == -1) { |