discomfitor pushed a commit to branch enlightenment-0.20. http://git.enlightenment.org/core/enlightenment.git/commit/?id=fbda06d657736a017bf377515af312eb63c4980e
commit fbda06d657736a017bf377515af312eb63c4980e Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Tue Mar 22 15:10:50 2016 -0400 use snprintf for string handling in batget CID 1039801 --- src/modules/battery/batget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/battery/batget.c b/src/modules/battery/batget.c index f6abd07..6e921c3 100644 --- a/src/modules/battery/batget.c +++ b/src/modules/battery/batget.c @@ -996,8 +996,7 @@ linux_acpi_init(void) FILE *f; if (info->name_length + sizeof("/state") >= sizeof(buf)) continue; - strcpy(buf, info->path); - strcat(buf, "/state"); + snprintf(buf, sizeof(buf), "%s/state", info->path); f = fopen(buf, "r"); if (f) { --