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:
Colin Percival 2007-03-17 14:59:04 +00:00
parent 9daba64ed5
commit f2d18f3112

View File

@ -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;
}