Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remoteproc.c: fix compile error #617

Closed
wants to merge 1 commit into from

Conversation

wyr-7
Copy link
Contributor

@wyr-7 wyr-7 commented Sep 19, 2024

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));

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));

Signed-off-by: Yongrong Wang <[email protected]>
@tomi-font
Copy link

This is not a proper fix. FYI I just submitted one that takes care of all the occurences: #618

@arnopo
Copy link
Collaborator

arnopo commented Sep 26, 2024

see also #602

@xiaoxiang781216
Copy link
Collaborator

could close this pr too.

@wyr-7 wyr-7 closed this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants