safe_write: fix unsigned vs. signed comparison

Michael
This commit is contained in:
Michael Adam 2009-08-07 10:04:57 +02:00
parent 2fff622819
commit b450ad76ff

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;