summaryrefslogtreecommitdiffstats
path: root/stream/stream_smb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_smb.c')
-rw-r--r--stream/stream_smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index e2f77ce3a1..ecd2a6260a 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -77,7 +77,7 @@ static int control(stream_t *s, int cmd, void *arg) {
off_t size = smbc_lseek(s->fd,0,SEEK_END);
smbc_lseek(s->fd,s->pos,SEEK_SET);
if(size != (off_t)-1) {
- *((off_t*)arg) = size;
+ *(uint64_t *)arg = size;
return 1;
}
}