diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-04-09 17:33:31 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-04-09 17:57:27 +0200 |
| commit | deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd (patch) | |
| tree | 34a8863335a8eee38ec28419812e99a3c27cef64 /src/blind-split.c | |
| parent | Add blind-skip-pattern (diff) | |
| download | blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.gz blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.bz2 blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.xz | |
Clean up
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-split.c')
| -rw-r--r-- | src/blind-split.c | 2 |
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))) { |
