safe_write: fix unsigned vs. signed comparison

Michael
This commit is contained in:
Michael Adam committed 2009-08-07 10:04:57 +02:00
1 parent 2fff622819
commit b450ad76ff
1 file changed
+1 -1
+1 -1
View File
@@ -56,7 +56,7 @@ safe_write (int fd, const char *buffer, size_t count)
return -errno;
}
if (len == bytestosend)
if ((size_t)len == bytestosend)
break;
buffer += len;