summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-03-26 17:13:42 +0000
committerderaadt <deraadt@openbsd.org>2019-03-26 17:13:42 +0000
commit4fbea98972e91fab0499e506e66173f3b55a5b20 (patch)
treedcde44e192250cef015f40a343de860eca8e2cb5
parentUpdate to tzdata2019a from www.iana.org (diff)
downloadwireguard-openbsd-4fbea98972e91fab0499e506e66173f3b55a5b20.tar.xz
wireguard-openbsd-4fbea98972e91fab0499e506e66173f3b55a5b20.zip
Same INT32_MAX vs -1 confusion on the write-side
(previous commit was for read-side)
-rw-r--r--usr.bin/rsync/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/io.c b/usr.bin/rsync/io.c
index 08e39efecaf..43659dddd74 100644
--- a/usr.bin/rsync/io.c
+++ b/usr.bin/rsync/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.13 2019/03/26 16:20:03 deraadt Exp $ */
+/* $Id: io.c,v 1.14 2019/03/26 17:13:42 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -407,7 +407,7 @@ io_write_long(struct sess *sess, int fd, int64_t val)
nv = htole64(val);
- if (!io_write_int(sess, fd, INT32_MAX))
+ if (!io_write_int(sess, fd, -1))
ERRX1(sess, "io_write_int");
else if (!io_write_buf(sess, fd, &nv, sizeof(int64_t)))
ERRX1(sess, "io_write_buf");