aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node.c b/src/node.c
index 35c294f7..09660f74 100644
--- a/src/node.c
+++ b/src/node.c
@@ -53,8 +53,9 @@ serd_node_equals(const SerdNode* a, const SerdNode* b)
|| (a->type == b->type
&& a->n_bytes == b->n_bytes
&& a->n_chars == b->n_chars
- && ((a->buf == b->buf) || !strcmp((const char*)a->buf,
- (const char*)b->buf)));
+ && ((a->buf == b->buf) || !memcmp((const char*)a->buf,
+ (const char*)b->buf,
+ a->n_bytes + 1)));
}
static size_t