diff options
author | joerg <joerg> | 2008-05-09 00:39:06 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-05-09 00:39:06 +0000 |
commit | 30e19051a2c26dc4c022c077198335773b017852 (patch) | |
tree | acfc883ecfdbbf20e21edc25b1b8a5670a7a97cf /net | |
parent | 148bd21cf69eebfadb24aafba8122ab4f66407fb (diff) | |
download | pkgsrc-30e19051a2c26dc4c022c077198335773b017852.tar.gz |
libfetch-2.14:
Fix brain dead error in the quoting of unsafe characters.
Diffstat (limited to 'net')
-rw-r--r-- | net/libfetch/Makefile | 4 | ||||
-rw-r--r-- | net/libfetch/files/common.c | 6 |
2 files changed, 5 insertions, 5 deletions
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 <joerg@NetBSD.org> @@ -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; |