Code

libcollectdclient: Fix off-by-one error when reading the username.
authorFlorian Forster <octo@collectd.org>
Tue, 2 May 2017 08:26:40 +0000 (10:26 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 2 May 2017 08:26:40 +0000 (10:26 +0200)
commit59353d13d73f3a351c5dada73896344b9e2a3818
treea9e3459034cbfe3d0331ea426744e306490667fd
parenta21477bc160169035f250724d7fa027fe3da1106
libcollectdclient: Fix off-by-one error when reading the username.

The allocated buffer includes a null byte, but the network packet doesn't.
That means we were reading one byte too many from the buffer, overwriting
the terminating null byte in the buffer.
src/libcollectdclient/network_parse.c