diff options
author | David Robillard <d@drobilla.net> | 2024-06-24 12:44:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-25 15:52:07 -0400 |
commit | 032abfdff61056a7029a440fc1895bbe41ec964a (patch) | |
tree | afbb3d137d5f7e8efeec031d7e32bf938f18484b /src/n3.c | |
parent | 53fed50c8e37bf873196c2503814cd8b33acd298 (diff) | |
download | serd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |