server: Fix -U option so it copies trailing ASCII NUL character.
commitd8e30b6a2a8e808a30b69f0322080d81b6cfdf5e
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Jun 2013 20:50:18 +0000 (25 21:50 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Jun 2013 20:51:09 +0000 (25 21:51 +0100)
treea201df4e209a7da3df2542291ac48129c58f48e4
parent3c4c94cbb80879a82f1bbcb3ebc591169f925cf7
server: Fix -U option so it copies trailing ASCII NUL character.

The existing code calculated the length of the string to copy
incorrectly, resulting in it creating a garbage socket name.
src/sockets.c