summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-09 11:30:30 -0400
committerDavid Robillard <d@drobilla.net>2016-07-09 11:30:30 -0400
commit3ac689401e7dae4e5224ece5955c03f2a84bd6d4 (patch)
tree95009db5d346750b10633adf3f49f71360240b41 /src
parentdc589342b3e46c1abcb33ee8e37c9da8be041e5d (diff)
downloadsord-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sord.c b/src/sord.c
index 22732c9..4eb1664 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -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: