forked from enlightenment/efl
parent
b21fb2cb05
commit
ad37a6a256
|
@ -418,3 +418,6 @@
|
||||||
plug process to it can see key, mouse, multi etc. events.
|
plug process to it can see key, mouse, multi etc. events.
|
||||||
|
|
||||||
|
|
||||||
|
2011-12-16 Mike Blumenkrantz
|
||||||
|
|
||||||
|
* Fix possible 0 byte allocation in ecore-x
|
||||||
|
|
|
@ -1132,7 +1132,7 @@ ecore_x_window_root_list(int *num_ret)
|
||||||
overlap++;
|
overlap++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
roots = malloc((num - overlap) * sizeof(Window));
|
roots = malloc(MAX((num - overlap) * sizeof(Window), 1));
|
||||||
if (roots)
|
if (roots)
|
||||||
{
|
{
|
||||||
int k;
|
int k;
|
||||||
|
|
Loading…
Reference in New Issue