]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: use memdup_suffix0() where appropiate
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Jul 2025 14:25:00 +0000 (16:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Jul 2025 14:25:06 +0000 (16:25 +0200)
commitd3f04a6fa541280a8a205a3d4d2313a043b7a32d
tree02749df4f5873563877706b4550681aa76c336ea
parent7c8070c7818855e6d3310cefbed8db4678ac5f98
logind: use memdup_suffix0() where appropiate

memdup_suffix0() is the call of choice when we are dealing with an input
that might not be NUL terminated. strndup() assumes NUL termination.
src/login/logind-utmp.c