summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-03-02 17:57:19 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-03-02 17:57:19 +0000
commite1bfe932a99e27b5be3b428aeb04d34d259849ed (patch)
treeb4fba7c5070529dfb97a9350f9d37574c7b7fbfe
parentd44066ddd5a818849750ed327c0960c720802fab (diff)
only signed types work when comparing less than zero.
reported by matthieu. ok deraadt
-rw-r--r--usr.bin/ftp/fetch.c4
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;