aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorRodrigo Campos <rodrigo@sdfg.com.ar>2024-02-18 16:51:05 -0300
committerThomas Weißschuh <linux@weissschuh.net>2024-04-10 23:19:02 +0200
commitfbffce819e5ac151e137f881b89a9c1da0ebb76c (patch)
tree70547087330d00a1d215f4d01f018ac0988f5099 /scripts/generate_rust_analyzer.py
parenttools/nolibc: Fix strlcat() return code and size usage (diff)
downloadwireguard-linux-fbffce819e5ac151e137f881b89a9c1da0ebb76c.tar.xz
wireguard-linux-fbffce819e5ac151e137f881b89a9c1da0ebb76c.zip
tools/nolibc: Fix strlcpy() return code and size usage
The return code should always be strlen(src), and we should copy at most size-1 bytes. While we are there, make sure to null-terminate the dst buffer if we copied something. Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions