Module: kamailio Branch: master Commit: c26e9877419ac53fb109a24aefb3fcd711fae1d7 URL: https://github.com/kamailio/kamailio/commit/c26e9877419ac53fb109a24aefb3fcd711fae1d7
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2023-11-16T19:50:13+01:00 core: copy the value between quotes for #!defexps - GH #3631 --- Modified: src/core/ppcfg.c --- Diff: https://github.com/kamailio/kamailio/commit/c26e9877419ac53fb109a24aefb3fcd711fae1d7.diff Patch: https://github.com/kamailio/kamailio/commit/c26e9877419ac53fb109a24aefb3fcd711fae1d7.patch --- diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c index ba7c1263fab..262a7931cd2 100644 --- a/src/core/ppcfg.c +++ b/src/core/ppcfg.c @@ -523,7 +523,7 @@ char *pp_defexp_eval(char *exval, int exlen, int qmode) } if(qmode == 1) { res[0] = '"'; - memcpy(res, sval.s + 1, sval.len); + memcpy(res + 1, sval.s, sval.len); res[sval.len + 1] = '"'; res[sval.len + 2] = '\0'; LM_DBG("expression quoted string result: [%s]\n", res); _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org