aboutsummaryrefslogtreecommitdiffstats
path: root/dict.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-08-31 06:47:17 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-08-31 06:47:17 +0000
commitbf5cf2196c619c6ec2fec5fdf31cd6b040df508d (patch)
tree35206c920901f95af0c5d9b86e65871c26eda873 /dict.c
parentb4a9e64f752f44066ecf039d0fa4770a676135c4 (diff)
downloadandroid_external_libxml2-bf5cf2196c619c6ec2fec5fdf31cd6b040df508d.tar.gz
android_external_libxml2-bf5cf2196c619c6ec2fec5fdf31cd6b040df508d.tar.bz2
android_external_libxml2-bf5cf2196c619c6ec2fec5fdf31cd6b040df508d.zip
fixed bug introduced during OOM fixup causing problems with default
* SAX2.c: fixed bug introduced during OOM fixup causing problems with default namespace when a named prefix with the same href was present (reported on the mailing list by Karl Eichwalder. * xmlstring.c: modified xmlCheckUTF8 with suggested code from Julius Mittenzwei. * dict.c: added a typecast to try to avoid problem reported by Pascal Rodes.
Diffstat (limited to 'dict.c')
-rw-r--r--dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dict.c b/dict.c
index 2ffd6a57..56c5dfb0 100644
--- a/dict.c
+++ b/dict.c
@@ -708,7 +708,7 @@ xmlDictOwns(xmlDictPtr dict, const xmlChar *str) {
return(-1);
pool = dict->strings;
while (pool != NULL) {
- if ((str >= pool->array) && (str <= pool->free))
+ if ((str >= &pool->array[0]) && (str <= pool->free))
return(1);
pool = pool->next;
}