diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-20 19:00:43 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-20 19:00:43 +0000 |
commit | c6bba81ef082232211d9f8573dfbf17d7505d871 (patch) | |
tree | eee8637bede055c26f0e59bf629a4ac79d8642f8 | |
parent | 0f442faf2e0637ea474f92bc09fb4eeeea21bcc0 (diff) | |
download | FreeBSD-src-c6bba81ef082232211d9f8573dfbf17d7505d871.zip FreeBSD-src-c6bba81ef082232211d9f8573dfbf17d7505d871.tar.gz |
Fix length calculation.
-rw-r--r-- | tools/regression/sockets/sendfile/sendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/sockets/sendfile/sendfile.c b/tools/regression/sockets/sendfile/sendfile.c index 0ede7a2..960d7e7 100644 --- a/tools/regression/sockets/sendfile/sendfile.c +++ b/tools/regression/sockets/sendfile/sendfile.c @@ -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) { |