Code

varnish plugin: Code cleanup:
authorFlorian Forster <octo@collectd.org>
Thu, 9 Nov 2017 15:18:33 +0000 (16:18 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 9 Nov 2017 15:18:33 +0000 (16:18 +0100)
commitc1e2bf3d2bfa1a1da3a6b42186577f635795e7f8
treea6e59ab8a4e611833f5301a7f5c9ee5db8654b8b
parent8192bfcf975ff6275505c99193a23e2a066927d0
varnish plugin: Code cleanup:

*   Remove legacy rindex() with the POSIX strrchr().
*   Check return value of strrchr().
*   Chose non-arbitrary buffer size.
*   Use sstrncpy() instead of strcpy().
src/varnish.c