Don't forget to increment the raw_position (bytes written) counter, even
when operating in non-buffered mode. Pointy hat to: cperciva MFC after: 3 days
This commit is contained in:
parent
9daba64ed5
commit
f2d18f3112
@ -143,6 +143,7 @@ archive_compressor_none_write(struct archive_write *a, const void *vbuff,
|
||||
a->client_data, buff, remaining);
|
||||
if (bytes_written <= 0)
|
||||
return (ARCHIVE_FATAL);
|
||||
a->archive.raw_position += bytes_written;
|
||||
remaining -= bytes_written;
|
||||
buff += bytes_written;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user