aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-08-31 18:14:43 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-08-31 18:14:43 +0300
commitf7093cd9d130477c234b40aeda613964171f8f21 (patch)
tree8b53439f7bf7f1fda7605d402720008ad57392e1 /src/xz/file_io.h
parentTests: Improve invalid unpadded size check in test_lzma_index_append(). (diff)
downloadxz-f7093cd9d130477c234b40aeda613964171f8f21.tar.xz
xz: Fix a too relaxed assertion and remove uses of SSIZE_MAX.
SSIZE_MAX isn't readily available on MSVC. Removing it means that there is one thing less to worry when porting to MSVC.
Diffstat (limited to 'src/xz/file_io.h')
-rw-r--r--src/xz/file_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/file_io.h b/src/xz/file_io.h
index 8a9e3363..6992efa4 100644
--- a/src/xz/file_io.h
+++ b/src/xz/file_io.h
@@ -118,7 +118,7 @@ extern void io_close(file_pair *pair, bool success);
///
/// \param pair File pair having the source file open for reading
/// \param buf Destination buffer to hold the read data
-/// \param size Size of the buffer; assumed be smaller than SSIZE_MAX
+/// \param size Size of the buffer; must be at most IO_BUFFER_SIZE
///
/// \return On success, number of bytes read is returned. On end of
/// file zero is returned and pair->src_eof set to true.
@@ -172,7 +172,7 @@ extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, uint64_t pos);
///
/// \param pair File pair having the destination file open for writing
/// \param buf Buffer containing the data to be written
-/// \param size Size of the buffer; assumed be smaller than SSIZE_MAX
+/// \param size Size of the buffer; must be at most IO_BUFFER_SIZE
///
/// \return On success, zero is returned. On error, -1 is returned
/// and error message printed.