From bf66547c1500c78e563e56dafe85a3a45bf71fd4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Mar 2014 10:28:33 -0400 Subject: [PATCH] fix null termination of client desktop string matching CID 1155274 --- src/bin/e_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 597632d..6b28f39 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -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)) -- 2.7.4