author | Florian Forster <octo@collectd.org> | |
Thu, 9 Nov 2017 15:18:33 +0000 (16:18 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 9 Nov 2017 15:18:33 +0000 (16:18 +0100) | ||
commit | c1e2bf3d2bfa1a1da3a6b42186577f635795e7f8 | |
tree | a6e59ab8a4e611833f5301a7f5c9ee5db8654b8b | tree | snapshot |
parent | 8192bfcf975ff6275505c99193a23e2a066927d0 | commit | diff |
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().
* 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 | diff | blob | history |