fix: security issues

This commit is contained in:
2025-11-10 14:38:01 +01:00
parent 8f19c243f0
commit fa411c8b18
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ bool file_update(File *file) {
// close file
fclose(file_pointer);
// append null byte
file->content[length] = '\0';
file->content[length] = 0;
// read last update time
file->last_write = get_file_time(file);