seoz pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=b39ab53ffcf0b233555cfbd4e78540763c28bc6c
commit b39ab53ffcf0b233555cfbd4e78540763c28bc6c 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 bc58043..f5b7d79 100644 --- a/src/bin/config_data.c +++ b/src/bin/config_data.c @@ -48,7 +48,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); --
