mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
drivers:rptun use strlcpy inside of strcpy
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user