hermet pushed a commit to branch enventor-0.3. http://git.enlightenment.org/tools/enventor.git/commit/?id=7571783f4a167ba6ec41f21473372699f586cc7b
commit 7571783f4a167ba6ec41f21473372699f586cc7b Author: Daniel Juyung Seo <[email protected]> Date: Sat Aug 23 00:44:34 2014 +0900 config: fixed buffer not null terminated bug. This fixes coverity CID 47570. --- src/bin/config_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/config_data.c b/src/bin/config_data.c index 2b9db44..2d1c5c9 100644 --- a/src/bin/config_data.c +++ b/src/bin/config_data.c @@ -46,7 +46,7 @@ config_edj_path_update(config_data *cd) if (ext && file) snprintf(buf, (ext - file) + 1, "%s", file); else - strncpy(buf, file, sizeof(buf)); + strncpy(buf, file, sizeof(buf) - 1); char *filedir = ecore_file_dir_get(cd->edc_path); sprintf(edj_path, "%s/%s.edj", filedir, buf); free(filedir); --
