config_data: Fix to set random output file name.

Currently, output file name is the same as input file name.
This causes an issue when input files which have same names are opened
at the same time.
To resolve the above issue, output file names are set randomly.
This commit is contained in:
Jaehyun Cho 2015-09-24 10:03:12 +09:00
parent 811b10293f
commit 4e82a3e7ca
1 changed files with 2 additions and 2 deletions

View File

@ -56,10 +56,10 @@ config_edj_path_update(config_data *cd)
{
char filename[PATH_MAX];
snprintf(filename, (ext - file) + 1, "%s", file);
snprintf(buf, sizeof(buf), "%s.edj", filename);
snprintf(buf, sizeof(buf), "%s_XXXXXX.edj", filename);
}
else
snprintf(buf, sizeof(buf), "%s.edj", file);
snprintf(buf, sizeof(buf), "%s_XXXXXX.edj", file);
if (!eina_file_mkstemp(buf, &tmp_path))
{