diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 03:58:48 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 03:58:48 +0000 |
commit | ef8209e12962a28f392372a6f6048e016cea273e (patch) | |
tree | 187f62a27a861ab40f942e11100798497c7710ae /src | |
parent | c743057774fa624918a0de128e8f6a45b55932df (diff) | |
download | mpd-ef8209e12962a28f392372a6f6048e016cea273e.tar.gz mpd-ef8209e12962a28f392372a6f6048e016cea273e.tar.xz mpd-ef8209e12962a28f392372a6f6048e016cea273e.zip |
use ftell to set offset
git-svn-id: https://svn.musicpd.org/mpd/trunk@1081 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/inputStream_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c index 876d10c5a..2b05489c9 100644 --- a/src/inputStream_file.c +++ b/src/inputStream_file.c @@ -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; } |