diff options
author | LRN <lrn1986@gmail.com> | 2012-12-20 13:57:01 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-12-20 13:57:01 +0000 |
commit | da2650da002c5cdb38b9fca08b8ef0984629694a (patch) | |
tree | c6c551e707b6084fddbb2fde4989c83a61f9831f | |
parent | 158a7faca398f0626c5c5377ae774c697e48f0c6 (diff) | |
download | gnunet-da2650da002c5cdb38b9fca08b8ef0984629694a.tar.gz gnunet-da2650da002c5cdb38b9fca08b8ef0984629694a.zip |
Fix percentization of non-ASCII strings
-rw-r--r-- | src/fs/fs_uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 0f4168918..98e9903c3 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -1906,7 +1906,7 @@ uri_ksk_to_string (const struct GNUNET_FS_Uri *uri) | |||
1906 | continue; /* skip leading space */ | 1906 | continue; /* skip leading space */ |
1907 | if (needs_percent (keyword[j])) | 1907 | if (needs_percent (keyword[j])) |
1908 | { | 1908 | { |
1909 | sprintf (&ret[wpos], "%%%02X", keyword[j]); | 1909 | sprintf (&ret[wpos], "%%%02X", (unsigned char) keyword[j]); |
1910 | wpos += 3; | 1910 | wpos += 3; |
1911 | } | 1911 | } |
1912 | else | 1912 | else |