summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2009-06-03 12:24:49 +0000
committerroot <root>2009-06-03 12:24:49 +0000
commitd64cc727dc4e875228983078ebca990e8d6b9dbd (patch)
tree4ed44deb39a9fea9cf503622a6ba3bd25d8d61de /eio.c
parent217dcba927bf9f2ca731fdd9088b3d542d3035b7 (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eio.c b/eio.c
index b26008b..9fcb42c 100644
--- a/eio.c
+++ b/eio.c
@@ -773,7 +773,7 @@ eio__pwrite (int fd, void *buf, size_t count, off_t offset)
ooffset = lseek (fd, 0, SEEK_CUR);
lseek (fd, offset, SEEK_SET);
res = write (fd, buf, count);
- lseek (fd, offset, SEEK_SET);
+ lseek (fd, ooffset, SEEK_SET);
X_UNLOCK (preadwritelock);
return res;