Replace all calls to `strerror' with `sstrerror'
[collectd.git] / src / dns.c
index 11dc287..255d176 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -320,8 +320,9 @@ static int dns_init (void)
                        (void *) 0);
        if (status != 0)
        {
+               char errbuf[1024];
                ERROR ("dns plugin: pthread_create failed: %s",
-                               strerror (status));
+                               sstrerror (errno, errbuf, sizeof (errbuf)));
                return (-1);
        }