diff options
author | Bastien Nocera <hadess@hadess.net> | 2008-06-05 17:54:37 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2008-06-05 17:54:37 +0000 |
commit | b657f5c4636886f21cffdd440c1f7aedaa3fc301 (patch) | |
tree | d8aa93314fb2ecbc18314e0c1f4080dc2bb91eb9 | |
parent | 9eb736a5b04e2a2386518abd04196409c194b17d (diff) |
* src/xdgmimecache.c (cache_glob_node_lookup_suffix):
Patch by Matthias Clasen <mclasen@redhat.com> to fix reading
the suffix lookup (wrong offsets when reading the mime-type
offset and weight)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/xdgmimecache.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2008-06-05 Bastien Nocera <hadess@hadess.net> + + * src/xdgmimecache.c (cache_glob_node_lookup_suffix): + Patch by Matthias Clasen <mclasen@redhat.com> to fix reading + the suffix lookup (wrong offsets when reading the mime-type + offset and weight) + 2008-06-03 Bastien Nocera <hadess@hadess.net> * src/xdgmime.c (xdg_mime_dump): diff --git a/src/xdgmimecache.c b/src/xdgmimecache.c index 7f63ae0..22cc30e 100644 --- a/src/xdgmimecache.c +++ b/src/xdgmimecache.c @@ -507,8 +507,8 @@ cache_glob_node_lookup_suffix (XdgMimeCache *cache, if (match_char != 0) break; - mimetype_offset = GET_UINT32 (cache->buffer, offset + 20 * i + 4); - weight = GET_UINT32 (cache->buffer, offset + 20 * i + 16); + mimetype_offset = GET_UINT32 (cache->buffer, child_offset + 20 * i + 4); + weight = GET_UINT32 (cache->buffer, child_offset + 20 * i + 16); mime_types[n].mime = cache->buffer + mimetype_offset; mime_types[n].weight = weight; |