diff options
author | rsc <devnull@localhost> | 2003-12-09 06:06:07 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-12-09 06:06:07 +0000 |
commit | ceb04770830a7610a5a9a21aa96a4ba4cece2a5d (patch) | |
tree | b739b6d6ccc6d14c4aa28c575f434e0c9dc26c48 /src/libfs/read.c | |
parent | 4e6ed88aa81979cfd5fde4697fb763f57f516cc4 (diff) | |
download | plan9port-ceb04770830a7610a5a9a21aa96a4ba4cece2a5d.tar.gz plan9port-ceb04770830a7610a5a9a21aa96a4ba4cece2a5d.tar.bz2 plan9port-ceb04770830a7610a5a9a21aa96a4ba4cece2a5d.zip |
check everything in so i can move to linux and valgrind.
Diffstat (limited to 'src/libfs/read.c')
-rw-r--r-- | src/libfs/read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libfs/read.c b/src/libfs/read.c index ca6c628c..1ef2cb3a 100644 --- a/src/libfs/read.c +++ b/src/libfs/read.c @@ -14,6 +14,7 @@ fspread(Fid *fid, void *buf, long n, vlong offset) void *freep; tx.type = Tread; + tx.fid = fid->fid; if(offset == -1){ qlock(&fid->lk); tx.offset = fid->offset; @@ -32,7 +33,7 @@ fspread(Fid *fid, void *buf, long n, vlong offset) memmove(buf, rx.data, rx.count); if(offset == -1){ qlock(&fid->lk); - tx.offset += n; + fid->offset += rx.count; qunlock(&fid->lk); } } |