From d64cc727dc4e875228983078ebca990e8d6b9dbd Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Jun 2009 12:24:49 +0000 Subject: *** empty log message *** --- eio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eio.c') 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; -- cgit v1.2.3