use lseek to fill with silence

This commit is contained in:
Alexandre Ratchov 2015-08-23 17:03:02 +02:00
parent dbebd9982f
commit fd7c03518f
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ int
afile_seek(struct afile *f, off_t pos)
{
pos += f->startpos;
if (f->endpos >= 0 && pos > f->endpos) {
if (f->endpos >= 0 && pos > f->endpos && !f->par.sig) {
log_puts(f->path);
log_puts(": attempt to seek outside file boundaries\n");
return 0;