ntpd branch: Fixed misspelled variable name in common.h.
[collectd.git] / src / common.c
index 138b767..98e6704 100644 (file)
@@ -161,7 +161,7 @@ ssize_t swrite (int fd, const void *buf, size_t count)
        ssize_t     status;
 
        ptr   = (const char *) buf;
-       nleft = buflen;
+       nleft = count;
 
        while (nleft > 0)
        {