Module: kamailio
Branch: master
Commit: 1d256290cf10414a2f1af1feda3c9a357eb8ac27
URL:
https://github.com/kamailio/kamailio/commit/1d256290cf10414a2f1af1feda3c9a3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-30T12:10:06+02:00
imc: let space for ending characters
---
Modified: src/modules/imc/imc_cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1d256290cf10414a2f1af1feda3c9a3…
Patch:
https://github.com/kamailio/kamailio/commit/1d256290cf10414a2f1af1feda3c9a3…
---
diff --git a/src/modules/imc/imc_cmd.c b/src/modules/imc/imc_cmd.c
index bf68967d21..4ace0b800e 100644
--- a/src/modules/imc/imc_cmd.c
+++ b/src/modules/imc/imc_cmd.c
@@ -1027,7 +1027,7 @@ int imc_handle_rooms(struct sip_msg* msg, imc_cmd_t *cmd,
size_t left;
p = imc_body_buf;
- left = sizeof(imc_body_buf);
+ left = sizeof(imc_body_buf) - 2;
memcpy(p, ROOMS, sizeof(ROOMS) - 1);
p += sizeof(ROOMS) - 1;