Browse Source

core: removed unnecessary use of strlen

(cherry picked from commit 926988487358e1ae3ba79ca999629c452e2d32df)
Daniel-Constantin Mierla 9 months ago
parent
commit
7e0310160d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/sr_module.c

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