mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 23:47:16 +00:00
drivers:rptun use strlcpy inside of strcpy
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
ca24efff80
commit
f9bcf1d645
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ rptun_get_mem(FAR struct remoteproc *rproc,
|
|||
FAR struct rptun_priv_s *priv = rproc->priv;
|
||||
|
||||
metal_list_init(&buf->node);
|
||||
strcpy(buf->name, name ? name : "");
|
||||
strlcpy(buf->name, name ? name : "", RPROC_MAX_NAME_LEN);
|
||||
buf->io = metal_io_get_region();
|
||||
buf->size = size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue