commit | 2f51257b176306f62a73b1ba0c4cd1663ba33152 | [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 | b91f100fdfa9d6a7129f22c7cf76b3778cf57c29 [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>