Commit ef8209e1 authored by Warren Dukes's avatar Warren Dukes

use ftell to set offset

git-svn-id: https://svn.musicpd.org/mpd/trunk@1081 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent c7430577
......@@ -69,7 +69,7 @@ size_t inputStream_fileRead(InputStream * inStream, void * ptr, size_t size,
readSize = fread(ptr,size,nmemb,(FILE *)inStream->data);
if(readSize>0) inStream->offset+=readSize*size;
inStream->offset = ftell((FILE *)inStream->data);
return readSize;
}
......
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