These are builds done running a standard './configure && make'. This
will also fix a corner case where the whence is set to anything other than
SEEK_SET, SEEK_CUR, or SEEK_END. The behavior is to use SEEK_SET by default.
/* Modify the offset for use with SEEK_SET */
switch (whence)
{
- case SEEK_SET:
- client_offset = 0;
- break;
case SEEK_CUR:
client_offset = rar->offset_seek;
break;
case SEEK_END:
client_offset = rar->unp_size;
+ break;
+ case SEEK_SET:
+ default:
+ client_offset = 0;
}
client_offset += offset;
if (client_offset < 0)