<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've just been stuffing PhysFS into OpenSceneGraph 
(<A href="http://www.openscenegraph.org">www.openscenegraph.org</A>) file 
handling mechanism as I'm using archives. When I tested&nbsp;my code using the 
default&nbsp;initialisation I had PHYSFS_tell lying to me about it's current 
location in the file after a seek. I noticed that the buffer values don't get 
reset in PHYSFS_seek, so bufpos is the same as for the last read, this seems 
wrong to me. I added the line:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if(h-&gt;buffer != NULL)</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; h-&gt;buffill = h-&gt;bufpos = 
h-&gt;bufsize;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>just before the return in PHYSFS_seek. This makes 
is work just fine. Although I'm new to PhysFS, this seems like a bug to me. I'm 
surprised no one else has picked this up before, so am just wondering if I'm 
wrong in assuming that PHYSFS_tell(PHYSFS_filelength(handle)) should always 
return PHYSFS_filelength(handle).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>That's it really,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Tree</FONT></DIV>
<DIV><FONT size=1>
<P></FONT><FONT face=Arial size=2></FONT><FONT size=1><FONT face=Arial 
size=2></FONT>&nbsp;</P></FONT></DIV></BODY></HTML>