diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-12 12:51:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-12 12:51:54 +0000 |
commit | 4338ee87ff7bb63cb40c6bd5ad74a146899e3288 (patch) | |
tree | a5e488ca76fa5fd020c66d68bc5ea983dd1c7312 | |
parent | 3980afa794031e82a93c66412e5c6ed07fbc2a78 (diff) | |
download | libhubbub-4338ee87ff7bb63cb40c6bd5ad74a146899e3288.tar.gz libhubbub-4338ee87ff7bb63cb40c6bd5ad74a146899e3288.tar.bz2 |
Hand off comparison to utility string comparisons.
svn path=/trunk/hubbub/; revision=8473
-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); } |