summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-12-31 00:35:03 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2012-12-31 00:35:03 (GMT)
commitf7ae4017ff50be5ef4eb3047ebbff4820550d5ed (patch)
tree91435dbd50e1a6e41b563f32ad1cd07cc96401f3
parent04ca17132485801786e0555c31edf9d4ca82f2eb (diff)
downloadlibdom-f7ae4017ff50be5ef4eb3047ebbff4820550d5ed.tar.gz
libdom-f7ae4017ff50be5ef4eb3047ebbff4820550d5ed.tar.bz2
Fix use of incorrect variable in dom_string(_caseless)_isequal
-rw-r--r--src/core/string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/string.c b/src/core/string.c
index 0cadd77..9ba3576 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -228,12 +228,12 @@ bool dom_string_isequal(const dom_string *s1, const dom_string *s2)
return match;
}
- len = dom_string_byte_length(s1);
+ len = dom_string_byte_length((dom_string *) is1);
if (len != dom_string_byte_length((dom_string *)is2))
return false;
- return 0 == memcmp(dom_string_data(s1), dom_string_data((dom_string *)is2), len);
+ return 0 == memcmp(dom_string_data((dom_string *) is1), dom_string_data((dom_string *)is2), len);
}
/**
@@ -278,12 +278,12 @@ bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2)
return match;
}
- len = dom_string_byte_length(s1);
+ len = dom_string_byte_length((dom_string *) is1);
if (len != dom_string_byte_length((dom_string *)is2))
return false;
- d1 = (const uint8_t *) dom_string_data(s1);
+ d1 = (const uint8_t *) dom_string_data((dom_string *) is1);
d2 = (const uint8_t *) dom_string_data((dom_string *)is2);
while (len > 0) {