Module: kamailio
Branch: master
Commit: e921fc8ed7a6c9fdeb532179a77503cd67799487
URL:
https://github.com/kamailio/kamailio/commit/e921fc8ed7a6c9fdeb532179a77503c…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-07T21:46:57+01:00
rls: fixed format-truncation warning GH #3013
---
Modified: src/modules/rls/rls.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e921fc8ed7a6c9fdeb532179a77503c…
Patch:
https://github.com/kamailio/kamailio/commit/e921fc8ed7a6c9fdeb532179a77503c…
---
diff --git a/src/modules/rls/rls.c b/src/modules/rls/rls.c
index 19ecce0ca2..63c69a64c6 100644
--- a/src/modules/rls/rls.c
+++ b/src/modules/rls/rls.c
@@ -684,8 +684,8 @@ static int child_init(int rank)
for (i = 0; i < rls_notifier_processes; i++)
{
- char tmp[16];
- snprintf(tmp, 16, "RLS NOTIFIER %d", i);
+ char tmp[25];
+ snprintf(tmp, 25, "RLS NOTIFIER %d", i);
rls_notifier_id[i] = i;
if (fork_basic_utimer(PROC_TIMER, tmp, 1,