aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-24 12:44:39 -0400
committerDavid Robillard <d@drobilla.net>2024-06-25 15:52:07 -0400
commit032abfdff61056a7029a440fc1895bbe41ec964a (patch)
treeafbb3d137d5f7e8efeec031d7e32bf938f18484b /src/n3.c
parent53fed50c8e37bf873196c2503814cd8b33acd298 (diff)
downloadserd-032abfdff61056a7029a440fc1895bbe41ec964a.tar.gz
serd-032abfdff61056a7029a440fc1895bbe41ec964a.tar.bz2
serd-032abfdff61056a7029a440fc1895bbe41ec964a.zip
Fix overly permissive parsing of syntax names on the command line
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index 6cb8522e..a3cb93a6 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1599,7 +1599,8 @@ tokcmp(SerdReader* const reader,
return -1;
}
- return serd_strncasecmp((const char*)node->buf, tok, n);
+ assert(node->buf[node->n_bytes] == '\0');
+ return serd_strcasecmp((const char*)node->buf, tok);
}
SerdStatus