Browse code

imc: let space for ending characters

Daniel-Constantin Mierla authored on 30/06/2020 10:10:06
Showing 1 changed files
... ...
@@ -1027,7 +1027,7 @@ int imc_handle_rooms(struct sip_msg* msg, imc_cmd_t *cmd,
1027 1027
 	size_t left;
1028 1028
 
1029 1029
 	p = imc_body_buf;
1030
-	left = sizeof(imc_body_buf);
1030
+	left = sizeof(imc_body_buf) - 2;
1031 1031
 
1032 1032
 	memcpy(p, ROOMS, sizeof(ROOMS) - 1);
1033 1033
 	p += sizeof(ROOMS) - 1;