Skip to content
Snippets Groups Projects
Commit 687148398131 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Avoid passing the wrong size to strncpy - simply use strcpy (#5311)

We have already validated that `p` is large enough to store `name`. In `strncpy` the `len` parameter should generally be the length of the target buffer, not the source buffer.
parent b08d955aff70
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment