aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_ldap.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/gpgkeys_ldap.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 'keyserver/gpgkeys_ldap.c')
-rw-r--r--keyserver/gpgkeys_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index b4bd00e4f..2e4d39d4a 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -1258,7 +1258,7 @@ printquoted(FILE *stream,char *string,char delim)
while(*string)
{
if(*string==delim || *string=='%')
- fprintf(stream,"%%%02x",*string);
+ fprintf(stream,"%%%02x",(unsigned char)*string);
else
fputc(*string,stream);