X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_fbhash.c;h=7c342e53c3715295078f58a36a8a9a6d1d067251;hp=366b44b8e57e5de40ade73894d4abe848f8d3918;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=3d082a905619c19ca5b7183bb95a30d4d9529c4d diff --git a/src/utils_fbhash.c b/src/utils_fbhash.c index 366b44b8..7c342e53 100644 --- a/src/utils_fbhash.c +++ b/src/utils_fbhash.c @@ -28,7 +28,7 @@ #include "plugin.h" -#include "utils_avltree.h" +#include "utils/avltree/avltree.h" #include "utils_fbhash.h" struct fbhash_s { @@ -102,7 +102,7 @@ static int fbh_read_file(fbhash_t *h) /* {{{ */ char *key_copy; char *value_copy; - buffer[sizeof(buffer) - 1] = 0; + buffer[sizeof(buffer) - 1] = '\0'; len = strlen(buffer); /* Remove trailing newline characters. */