static Eina_Bool
_font_entry_debug_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata)
{
- char *buf = fdata;
+ char **pos = fdata;
+ char *buf = *pos;
Font_Entry *fe = data;
Font_Cache *fc;
unsigned int len;
}
}
+ *pos = buf;
return EINA_TRUE;
}
char *buf, *pos;
struct _debug_info di;
di.size = sizeof(msg);
+ di.nfonts = 0;
memset(&msg, 0, sizeof(msg));
memcpy(pos, &di.nfonts, sizeof(unsigned int));
pos += sizeof(unsigned int);
- eina_hash_foreach(font_entries, _font_entry_debug_cb, pos);
+ eina_hash_foreach(font_entries, _font_entry_debug_cb, &pos);
*size = di.size;
return buf;