summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-03-08 11:53:37 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-03-08 11:53:37 +0000
commitc3024e8f3379a5e1412f0f9158857dee595417a2 (patch)
treec357e02c79c31584dfed4b64f88930c84b0f4d01 /usr.bin/cvs/buf.c
parent9a664b1bab7e8a1315c8c320f4bd2128933c7f22 (diff)
correct usage of lseek(2);
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index 266199d9ee7..b7e274c1c86 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.69 2008/02/27 22:34:04 joris Exp $ */
+/* $OpenBSD: buf.c,v 1.70 2008/03/08 11:53:36 joris Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -296,7 +296,7 @@ cvs_buf_write_stmp(BUF *b, char *template, struct timeval *tv)
cvs_worklist_add(template, &temp_files);
- if (lseek(fd, SEEK_SET, 0) < 0)
+ if (lseek(fd, 0, SEEK_SET) < 0)
fatal("cvs_buf_write_stmp: lseek: %s", strerror(errno));
return (fd);