Fix a signed/unsigned comparision issue.

ssize_t needs to be used, otherwise the comparasion _buff_size < 0 can never be true.
and as archive_read_data returns ssize_t a error could not be detected.
This commit is contained in:
Tobias Frost 2021-02-10 12:30:46 +01:00
parent d43d358b04
commit 70c43bd436

View File

@ -43,7 +43,7 @@ int entry_buffer::underflow()
{
if(gptr() == egptr())
{
size_t _buff_size = archive_read_data(_archive, _buff, _buff_max_size);
ssize_t _buff_size = archive_read_data(_archive, _buff, _buff_max_size);
if( _buff_size < 0 )
{