Avoided warning about unreasonable use of strncpy().

This commit is contained in:
Florian Pose 2021-08-25 11:58:22 +02:00
parent b22a70977e
commit a5a30f7dbf
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ int ec_flag_init(
return -ENOMEM;
}
strncpy(flag->key, key, strlen(key));
strcpy(flag->key, key);
flag->value = value;
return 0;
}