diff options
author | William Langford <wlangfor@gmail.com> | 2014-07-01 13:17:48 -0400 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-07-01 22:56:13 -0500 |
commit | 9f4d7e2fb85951ec93e4ee1b99072d5517658db5 (patch) | |
tree | 344bbf4614feea28869775d418a7e04b7400fca8 /builtin.c | |
parent | ba1acbe961789c099d6116ea2b2164bc09dd5339 (diff) |
Fixed base64 issue with UTF-8 strings
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -454,7 +454,7 @@ static jv f_format(jv input, jv fmt) { input = f_tostring(input); jv line = jv_string(""); const char b64[64 + 1] = CHARS_ALPHANUM "+/"; - const char* data = jv_string_value(input); + const unsigned char* data = (const unsigned char*)jv_string_value(input); int len = jv_string_length_bytes(jv_copy(input)); for (int i=0; i<len; i+=3) { uint32_t code = 0; |