[PATCH] check_real: fix null termination
Sebastian Herbszt <[email protected]>
| Newsgroups | gmane.network.nagios.devel |
|---|---|
| Message-ID | <20141127000323.00000f0b__7705.25863995335$1417044897$gmane$org@localhost> |
Fix null termination introduced by commit b61f51a ("plugins/check_real.c - recv string null terminate").
Signed-off-by: Sebastian Herbszt <[email protected]>
---
plugins/check_real.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 688c398..605701d 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) {
--
2.1.0