blob: 0a5e4de97d572241f56d1119dd06ba8de45c165f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/src/split.c b/src/split.c
index 9a0704c26184..f9c99db43f9b 100644
--- a/src/split.c
+++ b/src/split.c
@@ -982,7 +982,7 @@ bytes_chunk_extract (uintmax_t k, uintmax_t n, char *buf, size_t bufsize,
start = (k - 1) * (file_size / n);
end = (k == n) ? file_size : k * (file_size / n);
- if (start < initial_read)
+ if (initial_read != SIZE_MAX || start < initial_read)
{
memmove (buf, buf + start, initial_read - start);
initial_read -= start;
|