Code

src/daemon/common.c: Implement strjoin() with memcpy().
authorFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 14:19:25 +0000 (16:19 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 14:21:19 +0000 (16:21 +0200)
commitdff336960f8b0466ebcdd21abbeddb451d29e1f9
treef6fd90d4dc034836f917e91afce500e15c9f4a12
parentf0fbde90f3316fe2729f1f6f758a25b4b5cb7297
src/daemon/common.c: Implement strjoin() with memcpy().

The previous implementation used strncat() which has the unfortunate and
unintuitive behavior of copying n+1 bytes to the buffer.
src/common.c