From ef8209e12962a28f392372a6f6048e016cea273e Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 19 May 2004 03:58:48 +0000 Subject: use ftell to set offset git-svn-id: https://svn.musicpd.org/mpd/trunk@1081 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputStream_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3