diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-11 20:46:06 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-11 20:46:06 +0000 |
commit | 062bd92d8c4abd2a336db7f72ba05440a22c8f21 (patch) | |
tree | 214b7e477974aef5aff89463a5355226eac10f95 /usr.bin/fetch/util.c | |
parent | 37e9ffbc313d1f80a9e902940510abbabb064f1f (diff) | |
download | FreeBSD-src-062bd92d8c4abd2a336db7f72ba05440a22c8f21.zip FreeBSD-src-062bd92d8c4abd2a336db7f72ba05440a22c8f21.tar.gz |
Fix remote request for HTTP proxies. Should close PR#2670.
Diffstat (limited to 'usr.bin/fetch/util.c')
-rw-r--r-- | usr.bin/fetch/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/util.c b/usr.bin/fetch/util.c index 698866e..49c1108 100644 --- a/usr.bin/fetch/util.c +++ b/usr.bin/fetch/util.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: util.c,v 1.3 1997/02/05 19:59:18 wollman Exp $ + * $Id: util.c,v 1.4 1997/02/07 17:55:01 wollman Exp $ */ #include <sys/types.h> @@ -167,7 +167,7 @@ parse_host_port(const char *s, char **hostname, int *port) ul = strtoul(colon + 1, &ep, 10); if (*ep != '\0' || colon[1] == '\0' || errno != 0 || ul < 1 || ul > 65534) { - warnx("`%s': invalid port number", s); + warnx("`%s': invalid port number", colon + 1); return EX_USAGE; } |