agent: Limit printed length of uname and password in debug output
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 14 Mar 2014 09:20:53 +0000 (09:20 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 15 Apr 2014 17:35:22 +0000 (18:35 +0100)
commit354f2470431180b1ecfbee9dd76acd249da06342
tree8a6c8e4a1adffede9e98db7b9a853c3c5d1e5474
parent6c574fb308f490f4d179c7fd20ca43e0918039c2
agent: Limit printed length of uname and password in debug output

At this point in the code, neither the username nor password are
nul-terminated, so printing them in the debug output as nul-terminated
strings can easily result in rubbish being printed after them.

Fix this by specifying the string length in the printf() format string.
Finally my terminal will no longer ask me to install N’Ko fonts when
running the libnice tests.
agent/conncheck.c