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:
cperciva 2007-03-17 14:59:04 +00:00
parent a31ec7e01c
commit 820da80807

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