Fix length calculation.

This commit is contained in:
pjd 2007-04-20 19:00:43 +00:00
parent 0f442faf2e
commit c6bba81ef0

View File

@ -231,7 +231,7 @@ send_test(int connect_socket, u_int32_t header_length, u_int32_t offset,
if (fstat(file_fd, &sb) < 0)
err(1, "fstat");
length = sb.st_size;
length = sb.st_size - offset;
}
if (off != length) {