diff options
author | Sven Nierlein <sven@nierlein.org> | 2014-06-28 22:14:02 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2014-06-28 22:14:02 +0200 |
commit | ea8ab2002cd72f657582f4dd0a0580bd10131401 (patch) | |
tree | 43245ea6bf7f3e7cd0e6ca344dfc94c68189cca2 /plugins/check_real.c | |
parent | e566021a54c500aa2ee0f17bfe4f95d1fd1be243 (diff) | |
parent | 9123f6146c5dd3285d8fb78cf3a8cd52bad17ec1 (diff) | |
download | monitoring-plugins-ea8ab2002cd72f657582f4dd0a0580bd10131401.tar.gz |
Merge pull request #1263 from waja/coverity_fixes
Serveral coverity fixes from nagios-plugins
Diffstat (limited to 'plugins/check_real.c')
-rw-r--r-- | plugins/check_real.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c index 47776c5b..36f64134 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -178,6 +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 */ /* return a CRITICAL status if we couldn't read any data */ if (result == -1) { |