Avoided warning about unreasonable use of strncpy().

This commit is contained in:
Florian Pose 2021-08-25 11:58:22 +02:00
parent 4d2d4a5481
commit 2d96b626e8
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;
}