diff options
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -369,7 +369,7 @@ resolve_IRIREF(SerdReader* const reader, temp->length = serd_write_uri(uri, write_to_stack, &ctx); if (!ctx.status) { // Replace the destination with the new expanded node - memmove(dest, temp, serd_node_total_size(temp)); + memmove(dest, temp, sizeof(SerdNode) + serd_node_pad_length(temp->length)); serd_stack_pop_to(&reader->stack, string_start_offset + dest->length); } @@ -438,7 +438,8 @@ read_PrefixedName(SerdReader* const reader, } // Replace the destination with the new expanded node - const size_t total_size = serd_node_total_size(temp); + const size_t total_size = + sizeof(SerdNode) + serd_node_pad_length(temp->length); memmove(dest, temp, total_size); |