Fix generation of FONT_DEBUG response

SVN revision: 72707
This commit is contained in:
Iván Briano 2012-06-22 22:38:28 +00:00
parent 6aace19c0d
commit 74d8ed3c01
1 changed files with 5 additions and 2 deletions

View File

@ -1871,7 +1871,8 @@ _font_entry_debug_size_cb(const Eina_Hash *hash __UNUSED__, const void *key __UN
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;
@ -1964,6 +1965,7 @@ _font_entry_debug_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED_
}
}
*pos = buf;
return EINA_TRUE;
}
@ -1974,6 +1976,7 @@ _cserve2_cache_font_debug(unsigned int rid, unsigned int *size)
char *buf, *pos;
struct _debug_info di;
di.size = sizeof(msg);
di.nfonts = 0;
memset(&msg, 0, sizeof(msg));
@ -2000,7 +2003,7 @@ _cserve2_cache_font_debug(unsigned int rid, unsigned int *size)
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;