diff options
author | David Robillard <d@drobilla.net> | 2016-07-09 11:30:30 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-09 11:30:30 -0400 |
commit | 3ac689401e7dae4e5224ece5955c03f2a84bd6d4 (patch) | |
tree | 95009db5d346750b10633adf3f49f71360240b41 /src | |
parent | dc589342b3e46c1abcb33ee8e37c9da8be041e5d (diff) | |
download | sord-3ac689401e7dae4e5224ece5955c03f2a84bd6d4.tar.gz sord-3ac689401e7dae4e5224ece5955c03f2a84bd6d4.tar.bz2 sord-3ac689401e7dae4e5224ece5955c03f2a84bd6d4.zip |
Fix construction of URIs with UTF-8 characters
Diffstat (limited to 'src')
-rw-r--r-- | src/sord.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - Copyright 2011-2014 David Robillard <http://drobilla.net> + Copyright 2011-2016 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -1151,8 +1151,7 @@ sord_node_from_serd_node(SordWorld* world, memcpy(buf + uri_prefix.len, uri_suffix.buf, uri_suffix.len); buf[uri_len] = '\0'; ret = sord_new_uri_counted( - world, buf, uri_prefix.len + uri_suffix.len, - uri_prefix.len + uri_suffix.len, false); // FIXME: UTF-8 + world, buf, uri_len, serd_strlen(buf, NULL, NULL), false); return ret; } case SERD_BLANK: |