refactor: strncpy -> strlcpy

This commit is contained in:
2025-11-10 14:13:27 +01:00
parent f5bf71f535
commit 352f97c2db
7 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ void project_init(Project *project, char *project_path, char *config_file) {
char *frag_prefix;
unsigned int i;
strncpy(project->path, project_path, STR_LEN);
strlcpy(project->path, project_path, STR_LEN);
snprintf(config_path, STR_LEN, "%s/%s", project_path, config_file);