refactor: sprintf -> snprint, strncpy -> strlcpy

This commit is contained in:
2025-11-08 18:46:28 +01:00
parent 9c60d5dc4f
commit 92f010ca70
8 changed files with 60 additions and 58 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ bool file_update(File *file) {
File file_read(char *path) {
File file;
strncpy(file.path, path, STR_LEN);
strlcpy(file.path, path, STR_LEN);
file.content = NULL;
file.error = false;
file.last_write = 0;