Module: kamailio
Branch: master
Commit: 926988487358e1ae3ba79ca999629c452e2d32df
URL: 
https://github.com/kamailio/kamailio/commit/926988487358e1ae3ba79ca999629c452e2d32df

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@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/926988487358e1ae3ba79ca999629c452e2d32df.diff
Patch: 
https://github.com/kamailio/kamailio/commit/926988487358e1ae3ba79ca999629c452e2d32df.patch

---

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);

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to