summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-03-26 17:13:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-03-26 17:13:43 +0000
commit21964eaa67c19c3867d66d69ddc6b05d8e3b1b57 (patch)
tree587bb5ad7d2b216a6294b8a4b2f0237f635a0e3b /usr.bin
parentdb57689303e904e3de1551e913f65f141a917d50 (diff)
Same INT32_MAX vs -1 confusion on the write-side
(previous commit was for read-side)
Diffstat (limited to 'usr.bin')
-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");