summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2008-10-10 22:51:41 +0000
committerjoerg <joerg>2008-10-10 22:51:41 +0000
commite27a7ac5fb1002c99590f37de6297fde1c119522 (patch)
tree066ea9b3c2ba9c838dc99767c952fae65db6e395 /net
parent8200de6ca9a6d9903b10089549ab7f547ef11bec (diff)
downloadpkgsrc-e27a7ac5fb1002c99590f37de6297fde1c119522.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')
-rw-r--r--net/libfetch/Makefile4
-rw-r--r--net/libfetch/files/fetch.c4
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;