Skip to content
Snippets Groups Projects
Commit ac081dbd authored by alexander.lysikov's avatar alexander.lysikov
Browse files

replaced string copying with safer

parent d8b00470
No related branches found
No related tags found
1 merge request!65Feature 2854 1
This commit is part of merge request !65. Comments created here will be created in the context of that merge request.
......@@ -451,7 +451,7 @@ static int s_init( int argc, const char **argv )
uint16_t l_ca_folders_size = 0;
char **l_ca_folders = dap_config_get_array_str(g_config, "resources", "ca_folders", &l_ca_folders_size);
memcpy(s_system_ca_dir, l_ca_folders[0], strlen(l_ca_folders[0]));
dap_stpcpy(s_system_ca_dir, l_ca_folders[0]);//memcpy(s_system_ca_dir, l_ca_folders[0], strlen(l_ca_folders[0]));
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment