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:
parent
0f29dc52df
commit
4b7e26d006
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168911
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user