forked from enlightenment/enlightenment
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:
parent
1fb1f17db0
commit
c746beb202
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue