projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48bb9f2
)
since we do strlen, no need to strcpy
author
Sebastian Dransfeld
<sd@tango.flipp.net>
Wed, 29 Dec 2010 19:48:34 +0000
(19:48 +0000)
committer
Sebastian Dransfeld
<sd@tango.flipp.net>
Wed, 29 Dec 2010 19:48:34 +0000
(19:48 +0000)
SVN revision: 55773
src/bin/e_widget_fsel.c
patch
|
blob
|
history
diff --git
a/src/bin/e_widget_fsel.c
b/src/bin/e_widget_fsel.c
index
3ec0673
..
90f849e
100644
(file)
--- a/
src/bin/e_widget_fsel.c
+++ b/
src/bin/e_widget_fsel.c
@@
-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))
{