aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-cut.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-cut.c')
-rw-r--r--src/blind-cut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blind-cut.c b/src/blind-cut.c
index c1e1bdc..d9efacf 100644
--- a/src/blind-cut.c
+++ b/src/blind-cut.c
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
#endif
for (ptr = start; ptr < end; ptr += (size_t)r) {
max = end - ptr;
- max = max < sizeof(buf) ? max : sizeof(buf);
+ max = MIN(max, sizeof(buf));
r = pread(stream.fd, buf, max, ptr);
if (r < 0)
eprintf("pread %s:", stream.file);