aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-12-20 13:57:01 +0000
committerLRN <lrn1986@gmail.com>2012-12-20 13:57:01 +0000
commitda2650da002c5cdb38b9fca08b8ef0984629694a (patch)
treec6c551e707b6084fddbb2fde4989c83a61f9831f
parent158a7faca398f0626c5c5377ae774c697e48f0c6 (diff)
downloadgnunet-da2650da002c5cdb38b9fca08b8ef0984629694a.tar.gz
gnunet-da2650da002c5cdb38b9fca08b8ef0984629694a.zip
Fix percentization of non-ASCII strings
-rw-r--r--src/fs/fs_uri.c2
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