Module: kamailio
Branch: 5.3
Commit: bc58790b7d33e7d2f3818e22894604c90edb0a7b
URL:
https://github.com/kamailio/kamailio/commit/bc58790b7d33e7d2f3818e22894604c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-02T09:47:28+02:00
imc: let space for ending characters
(cherry picked from commit 1d256290cf10414a2f1af1feda3c9a357eb8ac27)
---
Modified: src/modules/imc/imc_cmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bc58790b7d33e7d2f3818e22894604c…
Patch:
https://github.com/kamailio/kamailio/commit/bc58790b7d33e7d2f3818e22894604c…
---
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;