diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/treebuilder/initial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/treebuilder/initial.c b/src/treebuilder/initial.c index f26d13f..9c2a6aa 100644 --- a/src/treebuilder/initial.c +++ b/src/treebuilder/initial.c @@ -94,7 +94,8 @@ static bool starts_with(const uint8_t *a, size_t a_len, const uint8_t *b, if (a_len < b_len) return false; - return strncasecmp((const char *) a, (const char *) b, b_len) == 0; + /* Now perform an insensitive comparison on the prefix */ + return hubbub_string_match_ci(a, b_len, b, b_len); } |