From b33f4c030159ac9dfdf34cb0ba6ec64daf727c8c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 5 Oct 2015 04:45:32 +0200 Subject: 9660srv: do not ignore upper 32 bits of offset when reading directory --- sys/src/cmd/9660srv/9660srv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/src/cmd/9660srv/9660srv.c') diff --git a/sys/src/cmd/9660srv/9660srv.c b/sys/src/cmd/9660srv/9660srv.c index 8fe773d1b..d0bdbabe3 100644 --- a/sys/src/cmd/9660srv/9660srv.c +++ b/sys/src/cmd/9660srv/9660srv.c @@ -13,7 +13,7 @@ static void iwalkup(Xfile*); static void iwalk(Xfile*, char*); static void iopen(Xfile*, int); static void icreate(Xfile*, char*, long, int); -static long ireaddir(Xfile*, uchar*, long, long); +static long ireaddir(Xfile*, uchar*, vlong, long); static long iread(Xfile*, char*, vlong, long); static long iwrite(Xfile*, char*, vlong, long); static void iclunk(Xfile*); @@ -314,7 +314,7 @@ icreate(Xfile *f, char *name, long perm, int mode) } static long -ireaddir(Xfile *f, uchar *buf, long offset, long count) +ireaddir(Xfile *f, uchar *buf, vlong offset, long count) { Isofile *ip = f->ptr; Dir d; -- cgit v1.2.3