e - xsettings - calloc buffer since we leave 3 of 4 bytes unset

the first 4 bytes is a msb/lsb thing for xsetttings - we ignore 3 of
the 4 bytes. thus we should just calloc the whole buffer to ensure its 0
This commit is contained in:
Carsten Haitzler 2015-04-21 08:52:19 +09:00
parent 1fb1f17db0
commit c746beb202
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ _e_xsettings_apply(Settings_Manager *sm)
EINA_LIST_FOREACH(settings, l, s)
len += s->length;
pos = data = malloc(len);
pos = data = calloc(1, len);
if (!data) return;
#if __BYTE_ORDER == __LITTLE_ENDIAN