[sr-dev] git:5.3:bc58790b: imc: let space for ending characters
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jul 2 09:55:49 CEST 2020
Module: kamailio
Branch: 5.3
Commit: bc58790b7d33e7d2f3818e22894604c90edb0a7b
URL: https://github.com/kamailio/kamailio/commit/bc58790b7d33e7d2f3818e22894604c90edb0a7b
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/bc58790b7d33e7d2f3818e22894604c90edb0a7b.diff
Patch: https://github.com/kamailio/kamailio/commit/bc58790b7d33e7d2f3818e22894604c90edb0a7b.patch
---
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;
More information about the sr-dev
mailing list