confic_data: Fix T1662 to always save edj file in /tmp/

Summary: Fix T1662 to always save edj file in /tmp/

Reviewers: Hermet

Maniphest Tasks: T1662

Differential Revision: https://phab.enlightenment.org/D1462
This commit is contained in:
Jaehyun Cho 2014-09-22 10:23:35 +09:00 committed by ChunEon Park
parent 2e51c1fe01
commit 9b83fe29b8
1 changed files with 1 additions and 3 deletions

View File

@ -49,9 +49,7 @@ config_edj_path_update(config_data *cd)
snprintf(buf, (ext - file) + 1, "%s", file);
else
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);
sprintf(edj_path, "/tmp/%s.edj", buf);
eina_stringshare_replace(&cd->edj_path, edj_path);
}