fix null termination of client desktop string matching

CID 1155274
This commit is contained in:
Mike Blumenkrantz 2014-03-13 10:28:33 -04:00
parent 1abc612569
commit bf66547c15
1 changed files with 1 additions and 1 deletions

View File

@ -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))