OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
721 stars 291 forks source link

remoteproc.c: fix compile error #617

Closed wyr-7 closed 1 month ago

wyr-7 commented 2 months ago

CC: open-amp/lib/rpmsg/rpmsg_virtio.c open-amp/lib/remoteproc/remoteproc.c: In function 'remoteproc_init_mem': open-amp/lib/remoteproc/remoteproc.c:309:17: error: 'strncpy' specified bound 32 equals destination size [-Werror=stringop-truncation] 309 | strncpy(mem->name, name, sizeof(mem->name));

tomi-font commented 1 month ago

This is not a proper fix. FYI I just submitted one that takes care of all the occurences: https://github.com/OpenAMP/open-amp/pull/618

arnopo commented 1 month ago

see also https://github.com/OpenAMP/open-amp/pull/602/

xiaoxiang781216 commented 1 month ago

could close this pr too.