Module: kamailio Branch: master Commit: d5991679b9c399e5e5bdb3bc31d57adb526708cc URL: https://github.com/kamailio/kamailio/commit/d5991679b9c399e5e5bdb3bc31d57adb526708cc
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2025-09-23T17:59:36+02:00 dialplan: use memcpy for coping data --- Modified: src/modules/dialplan/dp_repl.c --- Diff: https://github.com/kamailio/kamailio/commit/d5991679b9c399e5e5bdb3bc31d57adb526708cc.diff Patch: https://github.com/kamailio/kamailio/commit/d5991679b9c399e5e5bdb3bc31d57adb526708cc.patch --- diff --git a/src/modules/dialplan/dp_repl.c b/src/modules/dialplan/dp_repl.c index 82f7e32584d..eff019bba26 100644 --- a/src/modules/dialplan/dp_repl.c +++ b/src/modules/dialplan/dp_repl.c @@ -105,7 +105,7 @@ int dpl_dyn_printf_s(sip_msg_t *msg, const pv_elem_p elem, PKG_MEM_ERROR; goto clean; } - strcpy(vexpr->s, v.s); + memcpy(vexpr->s, v.s, v.len); ret = 0; clean: if(s.s) _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
