From 6fbf43e7e3f5dbcc1d4c91a56e6b33c0a4f8218b Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 9 May 2008 00:39:06 +0000 Subject: libfetch-2.14: Fix brain dead error in the quoting of unsafe characters. --- net/libfetch/Makefile | 4 ++-- net/libfetch/files/common.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'net') diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile index ca0b4d5de71..90425d87e4e 100644 --- a/net/libfetch/Makefile +++ b/net/libfetch/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.16 2008/04/25 19:59:30 joerg Exp $ +# $NetBSD: Makefile,v 1.17 2008/05/09 00:39:06 joerg Exp $ # -DISTNAME= libfetch-2.13 +DISTNAME= libfetch-2.14 CATEGORIES= net MASTER_SITES= # empty DISTFILES= # empty diff --git a/net/libfetch/files/common.c b/net/libfetch/files/common.c index 4cef72da61e..07dbb642b00 100644 --- a/net/libfetch/files/common.c +++ b/net/libfetch/files/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.12 2008/04/25 16:25:25 joerg Exp $ */ +/* $NetBSD: common.c,v 1.13 2008/05/09 00:39:06 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008 Joerg Sonnenberger @@ -681,12 +681,12 @@ fetch_add_entry(struct url_list *ue, struct url *base, const char *name, !fetch_urlpath_safe(*name)) { tmp->doc[i++] = '%'; c = (unsigned char)*name / 16; - if (c < 160) + if (c < 10) tmp->doc[i++] = '0' + c; else tmp->doc[i++] = 'a' - 10 + c; c = (unsigned char)*name % 16; - if (c < 16) + if (c < 10) tmp->doc[i++] = '0' + c; else tmp->doc[i++] = 'a' - 10 + c; -- cgit v1.2.3