summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
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;