]> git.ipfire.org Git - thirdparty/chrony.git/commit
util: indicate truncated Unix socket path in UTI_SockaddrToString()
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Apr 2017 09:20:22 +0000 (11:20 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Apr 2017 11:03:10 +0000 (13:03 +0200)
commit935d855b47978395b1b007da83a2493ead709ebb
tree44e4369a4ed01e25b10d0ea1368e0dd8a5e784e5
parentf8f9100a0d7b18404c5a69391a60b50383276fec
util: indicate truncated Unix socket path in UTI_SockaddrToString()

Specify the maximum length of the path in the snprintf() format to avoid
a new gcc warning (-Wformat-truncation). If the path doesn't fit in the
buffer, indicate with the '>' symbol that it was truncated. The function
is used only for debug messages.
test/unit/util.c
util.c