1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix length calculation.

This commit is contained in:
Pawel Jakub Dawidek 2007-04-20 19:00:43 +00:00
parent 0f29dc52df
commit 4b7e26d006
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168911

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) {