Commit 19325756 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix end-relative seeking

parent 7aa1de71
......@@ -1548,7 +1548,7 @@ int64_t udfread_file_seek(UDFFILE *p, int64_t pos, int whence)
pos += p->pos;
break;
case UDF_SEEK_END:
pos = udfread_file_size(p) - pos;
pos = udfread_file_size(p) + pos;
break;
case UDF_SEEK_SET:
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment