]> granicus.if.org Git - procps-ng/commit
w: make sure null terminated ut_* strings are used
authorThorsten Kukuk <kukuk@suse.com>
Tue, 7 Mar 2023 10:42:20 +0000 (11:42 +0100)
committerCraig Small <csmall@dropbear.xyz>
Tue, 7 Mar 2023 20:30:56 +0000 (07:30 +1100)
commitcced1e49ef25eae20773342a23af1e0d3dd27d30
treeb5a3f5c962a44f09de53a73e8a1c51fe4f95202e
parent133a833942224a9ae4cd049d62a3fa54e95c5a2a
w: make sure null terminated ut_* strings are used

strncpy does not null terminate a string if it has the maximal length.
Use always the null terminated variants for ut_user and ut_line.

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
src/w.c