Gitweb links:
...log
http://git.netsurf-browser.org/libdom.git/shortlog/f7ae4017ff50be5ef4eb30...
...commit
http://git.netsurf-browser.org/libdom.git/commit/f7ae4017ff50be5ef4eb3047...
...tree
http://git.netsurf-browser.org/libdom.git/tree/f7ae4017ff50be5ef4eb3047eb...
The branch, master has been updated
via f7ae4017ff50be5ef4eb3047ebbff4820550d5ed (commit)
from 04ca17132485801786e0555c31edf9d4ca82f2eb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libdom.git/commitdiff/f7ae4017ff50be5ef4eb...
commit f7ae4017ff50be5ef4eb3047ebbff4820550d5ed
Author: John-Mark Bell <jmb(a)netsurf-browser.org>
Commit: John-Mark Bell <jmb(a)netsurf-browser.org>
Fix use of incorrect variable in dom_string(_caseless)_isequal
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) {
-----------------------------------------------------------------------
Summary of changes:
src/core/string.c | 8 ++++----
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) {
--
Document Object Model library