aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-split.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-split.c')
-rw-r--r--src/blind-split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blind-split.c b/src/blind-split.c
index 90dee19..78c569a 100644
--- a/src/blind-split.c
+++ b/src/blind-split.c
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
for (end = to_end[i] ? SIZE_MAX : ends[i] * frame_size; ptr < end; ptr += n) {
n = end - ptr;
if (stream.ptr) {
- n = stream.ptr < n ? stream.ptr : n;
+ n = MIN(stream.ptr, n);
ewriteall(fd, stream.buf, n, argv[i * 2]);
memmove(stream.buf, stream.buf + n, stream.ptr -= n);
} else if ((n = eread_stream(&stream, n))) {