diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-03-02 17:57:19 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-03-02 17:57:19 +0000 |
commit | e1bfe932a99e27b5be3b428aeb04d34d259849ed (patch) | |
tree | b4fba7c5070529dfb97a9350f9d37574c7b7fbfe | |
parent | d44066ddd5a818849750ed327c0960c720802fab (diff) |
only signed types work when comparing less than zero.
reported by matthieu. ok deraadt
-rw-r--r-- | usr.bin/ftp/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 676ced935be..9b91c1722f0 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.113 2014/02/26 20:48:06 tedu Exp $ */ +/* $OpenBSD: fetch.c,v 1.114 2014/03/02 17:57:18 tedu Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -188,7 +188,7 @@ url_get(const char *origline, const char *proxyenv, const char *outfile) FILE *fin = NULL; off_t hashbytes; const char *errstr; - size_t len, wlen; + ssize_t len, wlen; #ifndef SMALL char *sslpath = NULL, *sslhost = NULL; char *locbase, *full_host = NULL, *auth = NULL; |