diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-10 22:51:41 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-10 22:51:41 +0000 |
commit | f0ae7519aacf003d9282e7b009cf63d3d25488ff (patch) | |
tree | 066ea9b3c2ba9c838dc99767c952fae65db6e395 /net/libfetch | |
parent | e4595f9895521829026c2ab16e1b22991abcaec4 (diff) | |
download | pkgsrc-f0ae7519aacf003d9282e7b009cf63d3d25488ff.tar.gz |
libfetch-2.19:
Fix a conditional in my quoting code to not be always true.
This makes ~ be quoted as %7e as intended.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/Makefile | 4 | ||||
-rw-r--r-- | net/libfetch/files/fetch.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/libfetch/Makefile b/net/libfetch/Makefile index 01f90727bfb..180cb9af847 100644 --- a/net/libfetch/Makefile +++ b/net/libfetch/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.21 2008/10/08 15:11:21 joerg Exp $ +# $NetBSD: Makefile,v 1.22 2008/10/10 22:51:41 joerg Exp $ # -DISTNAME= libfetch-2.18 +DISTNAME= libfetch-2.19 CATEGORIES= net MASTER_SITES= # empty DISTFILES= # empty diff --git a/net/libfetch/files/fetch.c b/net/libfetch/files/fetch.c index 7f5bf588c18..20edad4c191 100644 --- a/net/libfetch/files/fetch.c +++ b/net/libfetch/files/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.13 2008/10/06 12:58:29 joerg Exp $ */ +/* $NetBSD: fetch.c,v 1.14 2008/10/10 22:51:41 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org> @@ -510,7 +510,7 @@ quote_doc: u->doc[i++] = '0' + ((unsigned char)*p) / 16; else u->doc[i++] = 'a' - 10 + ((unsigned char)*p) / 16; - if ((unsigned char)*p % 16 < 16) + if ((unsigned char)*p % 16 < 10) u->doc[i++] = '0' + ((unsigned char)*p) % 16; else u->doc[i++] = 'a' - 10 + ((unsigned char)*p) % 16; |