Evas: Filter: Fix filter length assignment.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Apr 2011 14:44:32 +0000 (14:44 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Apr 2011 14:44:32 +0000 (14:44 +0000)
Fun fact... this works on 64 bit systems... well mine anyway, but falls over
in a horrible mess on 32bit systems.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@58763 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_filter.c

index d9f6d23..76a9150 100644 (file)
@@ -446,6 +446,7 @@ evas_filter_key_get(const Evas_Filter_Info *info, uint32_t *lenp)
    if (!key) return NULL;
    if (finfo->datasize) memcpy(key, info->data, finfo->datasize);
    key[finfo->datasize] = info->filter;
+   if (lenp) *lenp = len;
    return key;
 }