since we do strlen, no need to strcpy

SVN revision: 55773
This commit is contained in:
Sebastian Dransfeld 2010-12-29 19:48:34 +00:00
parent 48bb9f207f
commit 5d1a946cd8
1 changed files with 3 additions and 2 deletions

View File

@ -100,8 +100,9 @@ _e_wid_fsel_favorites_add(void *data1, void *data2 __UNUSED__)
symlink(current_path, buf);
}
fn = ecore_file_file_get(buf);
fname = alloca(strlen(fn) + 1);
strcpy(fname, fn);
len = strlen(fn) + 1;
fname = alloca(len);
memcpy(fname, fn, len);
e_user_dir_concat_static(buf, "fileman/favorites/.order");
if (ecore_file_exists(buf))
{