zone plugin: Fix strerror -> sstrerror.
authorFlorian Forster <octo@collectd.org>
Thu, 11 Jun 2015 09:36:12 +0000 (10:36 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 11 Jun 2015 09:36:12 +0000 (10:36 +0100)
src/zone.c

index 19eaea7..15eae6a 100644 (file)
@@ -81,7 +81,7 @@ zone_read_procfile(char const *pidstr, char const *name, void *buf, size_t bufsi
        if (sread(fd, buf, bufsize) != 0) {
                char errbuf[1024];
                ERROR ("zone plugin: Reading \"%s\" failed: %s", procfile,
-                               strerror (errno, errbuf, sizeof (errbuf)));
+                               sstrerror (errno, errbuf, sizeof (errbuf)));
                close(fd);
                return (1);
        }