fix strncpy(3) copy length
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 18 Sep 2017 17:53:50 +0000 (20:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Sep 2017 18:04:38 +0000 (12:04 -0600)
commit13a85be93769986e03662e8dae6f8bfdf2971aa9
tree89409b8c9fe96abb9fd69b15575a95d41b0bf693
parentba8b89a1549c5ce7d7544813c9137798de454fac
fix strncpy(3) copy length

0 terminate the last byte, and copy at most size-1.
(or 0 terminate the last byte after copying upto size bytes)

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c
server.c