Skip to content
Snippets Groups Projects
Commit d3358ecc authored by Sean Anderson's avatar Sean Anderson Committed by Tom Rini
Browse files

lib: string: Fix strlcpy return value


strlcpy should always return the number of bytes copied. We were
accidentally missing the nul-terminator. We also always used to return a
non-zero value, even if we did not actually copy anything.

Fixes: 23cd1385 ("Integrate USB gadget layer and USB CDC driver layer")

Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
parent 92e84896
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment