diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-03-26 16:20:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-03-26 16:20:04 +0000 |
commit | 5d9f96076b65e4deca274b1808c7082760960d52 (patch) | |
tree | f68c35aefe08749f2696abd96e73b1001beae496 | |
parent | 5060ceaeabd8fce221a2350992038a87e1c149a0 (diff) |
INT32_MAX isn't -1, to indicate re-read for 64-bit value.
Diagnosed by krw, ok florian
-rw-r--r-- | usr.bin/rsync/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/io.c b/usr.bin/rsync/io.c index 926d60199dd..08e39efecaf 100644 --- a/usr.bin/rsync/io.c +++ b/usr.bin/rsync/io.c @@ -1,4 +1,4 @@ -/* $Id: io.c,v 1.12 2019/02/18 22:47:34 benno Exp $ */ +/* $Id: io.c,v 1.13 2019/03/26 16:20:03 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -571,7 +571,7 @@ io_read_long(struct sess *sess, int fd, int64_t *val) if (!io_read_int(sess, fd, &sval)) { ERRX1(sess, "io_read_int"); return 0; - } else if (sval != INT32_MAX) { + } else if (sval != -1) { *val = sval; return 1; } |