filestream_seek does not return the position in the file

This commit is contained in:
Brad Parker 2017-10-28 20:37:56 -04:00
parent 5715774c3f
commit 89265f5cf2

View File

@ -468,7 +468,10 @@ error:
int filestream_eof(RFILE *stream)
{
size_t current_position = filestream_tell(stream);
size_t end_position = filestream_seek(stream, 0, SEEK_END);
size_t end_position;
filestream_seek(stream, 0, SEEK_END);
end_position = filestream_tell(stream);
filestream_seek(stream, current_position, SEEK_SET);