Module: kamailio
Branch: 5.5
Commit: 86c897fac37d2a78b8122b4c62ec87a2371fd9d4
URL:
https://github.com/kamailio/kamailio/commit/86c897fac37d2a78b8122b4c62ec87a…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-14T13:01:45+01:00
rls: fixed format-truncation warning GH #3013
(cherry picked from commit e921fc8ed7a6c9fdeb532179a77503cd67799487)
---
Modified: src/modules/rls/rls.c
---
Diff:
https://github.com/kamailio/kamailio/commit/86c897fac37d2a78b8122b4c62ec87a…
Patch:
https://github.com/kamailio/kamailio/commit/86c897fac37d2a78b8122b4c62ec87a…
---
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,