switch (whence) {
case SEEK_END:
for (i = data->length - 1;
- i && pos < -nodes[i-1].size;
+ i && pos < -nodes[i].size;
i--)
- pos += nodes[i-1].size;
+ pos += nodes[i].size;
break;
case SEEK_CUR:
/* get the absolute position */
return result;
}
-URLProtocol concat_protocol = {
+URLProtocol ff_concat_protocol = {
"concat",
concat_open,
concat_read,