X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fserial.c;h=aae99789d815833d28e0ba10372be8466eeed45c;hb=25824c65721f0f21cadf1607fad367c7e7831816;hp=8bbd94c05534db9c16abdeeafef06b04292b8ac1;hpb=614660f40c32b5af9b6c4852e4e370fc3953a5c8;p=collectd.git diff --git a/src/serial.c b/src/serial.c index 8bbd94c0..aae99789 100644 --- a/src/serial.c +++ b/src/serial.c @@ -23,8 +23,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if !KERNEL_LINUX #error "No applicable input method." @@ -79,7 +79,7 @@ static int serial_read(void) { continue; if (fields[0][len - 1] != ':') continue; - fields[0][len - 1] = 0; + fields[0][len - 1] = '\0'; for (int i = 1; i < numfields; i++) { len = strlen(fields[i]);