forked from enlightenment/enlightenment
fix null termination of client desktop string matching
CID 1155274
This commit is contained in:
parent
1abc612569
commit
bf66547c15
|
@ -1915,7 +1915,7 @@ _e_client_eval(E_Client *ec)
|
|||
{
|
||||
char *s;
|
||||
|
||||
strncpy(buf, ec->icccm.class, sizeof(buf));
|
||||
strncpy(buf, ec->icccm.class, sizeof(buf) - 1);
|
||||
s = buf;
|
||||
eina_str_tolower(&s);
|
||||
if (strcmp(s, ec->icccm.class))
|
||||
|
|
Loading…
Reference in New Issue