commit | d3358ecc54be0bc3b4dd11f7a63eab0a2842f772 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Thu Mar 11 00:15:41 2021 -0500 |
committer | Tom Rini <trini@konsulko.com> | Mon Apr 12 17:44:55 2021 -0400 |
tree | de594fc4a6e853b3a94e829ff92d60446ebd2a1c | |
parent | 92e84896112037833e429d629f87cedbeb255d5a [diff] |
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: 23cd138503 ("Integrate USB gadget layer and USB CDC driver layer") Signed-off-by: Sean Anderson <seanga2@gmail.com>