Avoided warning about unreasonable use of strncpy().
This commit is contained in:
parent
4d2d4a5481
commit
2d96b626e8
|
|
@ -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