summaryrefslogtreecommitdiff
path: root/Userland/ini.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-23 13:34:58 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-24 00:45:03 +0200
commit46b04a79e5c3c6be649b0d1a791fa9e91a0cbb50 (patch)
tree4f568326a8be9035343e6d32051abc5ed9e986b4 /Userland/ini.cpp
parente682967d7eb4bff978b011b03a6bf4b939745d1c (diff)
downloadserenity-46b04a79e5c3c6be649b0d1a791fa9e91a0cbb50.zip
DHCPClient: Prefer strlcpy over strncpy, fixes off-by-one
A malicious caller of set_params could have caused the ifr_name field to lack NUL-termination. I don't think this was an actual problem, though, as the Kernel always forces NUL-termination by overwriting ifr_name's last byte with NUL. However, it feels better to do it properly. No behaviour change (probably).
Diffstat (limited to 'Userland/ini.cpp')
0 files changed, 0 insertions, 0 deletions