1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-25 20:24:33 -04:00

removal of all strcpy

This commit is contained in:
nova
2025-10-17 22:23:45 +02:00
parent df726e2f32
commit 326d3f7e52
5 changed files with 12 additions and 12 deletions

View File

@@ -150,7 +150,7 @@ void *thread_rgt(){
char *path;
if (mid_file_count != 0) {
path = malloc(strlen(mid_content[selected_file_current].file_name) + 1);
strcpy(path, mid_content[selected_file_current].file_name);
memcpy(path, mid_content[selected_file_current].file_name, strlen(mid_content[selected_file_current].file_name)+1);
} else {
path = malloc(sizeof(char));
path[0] = '\0';