use strdupa in import config dialog

SVN revision: 75085
This commit is contained in:
Mike Blumenkrantz 2012-08-10 10:29:44 +00:00
parent 2b9279ba81
commit b4fdb00c96
1 changed files with 2 additions and 3 deletions

View File

@ -77,12 +77,12 @@ _import_edj_gen(E_Import_Config_Dialog *import)
if (import->external)
{
fstrip = strdup(e_util_filename_escape(import->file));
fstrip = strdupa(e_util_filename_escape(import->file));
snprintf(enc, sizeof(enc), "USER");
}
else
{
fstrip = strdup(e_util_filename_escape(file));
fstrip = strdupa(e_util_filename_escape(file));
if (import->quality == 100)
snprintf(enc, sizeof(enc), "COMP");
else
@ -251,7 +251,6 @@ _import_edj_gen(E_Import_Config_Dialog *import)
/* won't happen */
break;
}
free(fstrip);
fclose(f);