Set core name with strcpy() instead of assignment.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2019-10-21 09:26:14 -04:00
parent c8e72ad98d
commit aef668040b

View File

@ -207,7 +207,7 @@ int initialize_core(ocf_cache_t cache, ocf_core_t *core)
/* Core configuration */
ocf_mngt_core_config_set_default(&core_cfg);
core_cfg.name = "core1";
strcpy(core_cfg.name, "core1");
core_cfg.volume_type = VOL_TYPE;
ret = ocf_uuid_set_str(&core_cfg.uuid, "core");
if (ret)