]> granicus.if.org Git - xz/commitdiff
Use my_min() instead of MIN() in src/xz/list.c
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 27 May 2010 07:31:33 +0000 (02:31 -0500)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 27 May 2010 10:30:48 +0000 (13:30 +0300)
This should have been done in
920a69a8d8e4203c5edddd829d932130eac188ea.

src/xz/list.c

index 91707b918b47b5d2766be2ef6133d88e8aa58c91..3de838cdb2ca9e413fe819015b5c1699e11c080f 100644 (file)
@@ -156,7 +156,7 @@ parse_indexes(lzma_index **idx, file_pair *pair)
                do {
                        // Don't give the decoder more input than the
                        // Index size.
-                       strm.avail_in = MIN(IO_BUFFER_SIZE, index_size);
+                       strm.avail_in = my_min(IO_BUFFER_SIZE, index_size);
                        if (io_pread(pair, &buf, strm.avail_in, pos))
                                goto error;