From e1bfe932a99e27b5be3b428aeb04d34d259849ed Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 2 Mar 2014 17:57:19 +0000 Subject: only signed types work when comparing less than zero. reported by matthieu. ok deraadt --- usr.bin/ftp/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ftp') 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; -- cgit v1.2.3