Module: kamailio Branch: master Commit: 926988487358e1ae3ba79ca999629c452e2d32df URL: https://github.com/kamailio/kamailio/commit/926988487358e1ae3ba79ca999629c45...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2024-11-28T10:36:47+01:00
core: removed unnecessary use of strlen
---
Modified: src/core/sr_module.c
---
Diff: https://github.com/kamailio/kamailio/commit/926988487358e1ae3ba79ca999629c45... Patch: https://github.com/kamailio/kamailio/commit/926988487358e1ae3ba79ca999629c45...
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c index 5db20255874..afd67173a5d 100644 --- a/src/core/sr_module.c +++ b/src/core/sr_module.c @@ -512,7 +512,7 @@ int ksr_locate_module(char *mod_path, char **new_path) len++; } path[len] = 0; - strncat(path, mod_path, strlen(mod_path)); + strcat(path, mod_path);
if(stat(path, &stat_buf) == -1) { LM_DBG("module file not found <%s>\n", path);