commit | d5b9857609401e3cf9c53b111134a6aab8e4573c | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Mon Oct 29 08:44:25 2018 -0400 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Mon Oct 29 08:47:33 2018 -0400 |
tree | d3760c61f661d53a4b06c3deeb630842d595ae6d | |
parent | fa1d37502c87310886614949a8d72124762b2dcb [diff] |
client: fix gcc8 stringop-truncation warnings | In function 'open_nbd_socket.isra.2', | inlined from 'main' at ../git/nbd-proxy.c:835:7: | ../git/nbd-proxy.c:102:2: error: 'strncpy' specified bound 108 equals destination size [-Werror=stringop-truncation] | strncpy(addr.sun_path, path, sizeof(addr.sun_path)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I9f412d789f4e5ef1dffe05b37d903a5375fea8ec Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>