forked from enlightenment/enlightenment
parent
4d0cfed7b9
commit
435a620992
|
@ -1354,15 +1354,19 @@ _e_fm_op_copy_atom(E_Fm_Op_Task *task)
|
||||||
dst_dir = ecore_file_dir_get(task->dst.name);
|
dst_dir = ecore_file_dir_get(task->dst.name);
|
||||||
if (dst_dir)
|
if (dst_dir)
|
||||||
{
|
{
|
||||||
char dst_path[PATH_MAX];
|
|
||||||
const char *dst_name;
|
const char *dst_name;
|
||||||
|
|
||||||
dst_name = ecore_file_file_get(task->src.name);
|
dst_name = ecore_file_file_get(task->src.name);
|
||||||
if ((strlen(dst_dir) + strlen(dst_name)) >= PATH_MAX)
|
if (dst_name)
|
||||||
_E_FM_OP_ERROR_SEND_WORK(task, 0, "Not copying link: path too long", dst_path);
|
{
|
||||||
|
char dst_path[PATH_MAX];
|
||||||
|
|
||||||
snprintf(dst_path, sizeof(dst_path), "%s/%s", dst_dir, dst_name);
|
if ((strlen(dst_dir) + strlen(dst_name)) >= PATH_MAX)
|
||||||
task->dst.name = strdup(dst_path);
|
_E_FM_OP_ERROR_SEND_WORK(task, 0, "Not copying link: path too long", dst_path);
|
||||||
|
|
||||||
|
snprintf(dst_path, sizeof(dst_path), "%s/%s", dst_dir, dst_name);
|
||||||
|
task->dst.name = strdup(dst_path);
|
||||||
|
}
|
||||||
free(dst_dir);
|
free(dst_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue