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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user