aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-07-12 21:16:57 +0000
committerDavid Shaw <[email protected]>2006-07-12 21:16:57 +0000
commit5476afe1b4fd47695e94734981a35b2602f31054 (patch)
tree81bc36e56ad7355456be093552eee9a5a3a3a3fe /keyserver/curl-shim.c
parent* tar-ustar.m4: Use dd instead of strings as it's more likely to be (diff)
downloadgnupg-5476afe1b4fd47695e94734981a35b2602f31054.tar.gz
gnupg-5476afe1b4fd47695e94734981a35b2602f31054.zip
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
encoding of characters > 127. Noted by Nalin Dahyabhai.
Diffstat (limited to '')
-rw-r--r--keyserver/curl-shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index 4a4d18f56..8c7c36539 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -306,7 +306,7 @@ curl_escape(char *str,int length)
else
{
char numbuf[5];
- sprintf(numbuf,"%%%02X",str[idx]);
+ sprintf(numbuf,"%%%02X",(unsigned char)str[idx]);
strcpy(&enc[enc_idx],numbuf);
enc_idx+=3;
}