Evas: Filter: Fix filter length assignment.
authorBrett Nash <nash@nash.id.au>
Wed, 20 Apr 2011 14:44:32 +0000 (14:44 +0000)
committerBrett Nash <nash@nash.id.au>
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.

SVN revision: 58763

legacy/evas/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;
 }