X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsigrok.c;h=78d1f1db07f3cc6533dc6245df003f6b2715b832;hb=8f6aa6970bf787e6a11e095322af3338ec781d78;hp=eeab8c951b543e6b36d06354a4b7559f97efbe73;hpb=ca6d2f62d82ba4d07d6f266e3abbe1c0230d2f5a;p=collectd.git diff --git a/src/sigrok.c b/src/sigrok.c index eeab8c95..78d1f1db 100644 --- a/src/sigrok.c +++ b/src/sigrok.c @@ -21,8 +21,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include #include @@ -247,7 +247,7 @@ static int sigrok_init_driver(struct config_device *cfdev, } cfdev->sdi = devlist->data; g_slist_free(devlist); - snprintf(hwident, sizeof(hwident), "%s %s %s", + ssnprintf(hwident, sizeof(hwident), "%s %s %s", cfdev->sdi->vendor ? cfdev->sdi->vendor : "", cfdev->sdi->model ? cfdev->sdi->model : "", cfdev->sdi->version ? cfdev->sdi->version : "");