]> diplodocus.org Git - nmh/commit
rcvtty.c: Use struct utmpx's ut_line[], not a copy.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 08:32:28 +0000 (09:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 10:12:42 +0000 (11:12 +0100)
commit6567362ad831e08b8314297cf12bb732e8eb20c7
tree4cda912492cc62d94ef606c75eb7f027f93caa1d
parent24ca4cf3b0f5e02735ea716163a880b2b5cc8b49
rcvtty.c: Use struct utmpx's ut_line[], not a copy.

Silences gcc 8.1.1's warning that strncpy(3)'s length is the sizeof of
the source, not the destination, by removing the strncpy and passing the
source to alert() where it's only read, not written.
uip/rcvtty.c