Avoided warning about unreasonable use of strncpy().
This commit is contained in:
parent
db44c5be0f
commit
09d1096623
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue