summaryrefslogtreecommitdiffstats
path: root/usr.bin/rsync/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rsync/io.c')
-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");