aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 79fcc38e..189b02d9 100644
--- a/src/node.c
+++ b/src/node.c
@@ -532,11 +532,11 @@ serd_new_file_uri(const SerdStringView path, const SerdStringView hostname)
{
SerdBuffer buffer = {NULL, 0U};
- serd_write_file_uri(path, hostname, serd_buffer_sink, &buffer);
- serd_buffer_sink_finish(&buffer);
+ serd_write_file_uri(path, hostname, serd_buffer_write, &buffer);
+ serd_buffer_close(&buffer);
const size_t length = buffer.len;
- const char* const string = serd_buffer_sink_finish(&buffer);
+ const char* const string = (char*)buffer.buf;
SerdNode* const node = serd_new_string(serd_substring(string, length));
free(buffer.buf);