Browse Source

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>
Sebastian Herbszt 11 years ago
parent
commit
cba2d46a51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/check_real.c

+ 1 - 1
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) {