From 3ac689401e7dae4e5224ece5955c03f2a84bd6d4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Jul 2016 11:30:30 -0400 Subject: Fix construction of URIs with UTF-8 characters --- src/sord.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 + Copyright 2011-2016 David Robillard 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: -- cgit v1.2.1