forked from enlightenment/enventor
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:
parent
811b10293f
commit
4e82a3e7ca
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue