aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_file.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-19 03:58:48 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-19 03:58:48 +0000
commitef8209e12962a28f392372a6f6048e016cea273e (patch)
tree187f62a27a861ab40f942e11100798497c7710ae /src/inputStream_file.c
parentc743057774fa624918a0de128e8f6a45b55932df (diff)
downloadmpd-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/inputStream_file.c')
-rw-r--r--src/inputStream_file.c2
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;
}