From: Sebastian Dransfeld Date: Wed, 29 Dec 2010 19:48:34 +0000 (+0000) Subject: since we do strlen, no need to strcpy X-Git-Tag: submit/efl/20131021.015651~6526 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d1a946cd8b32e59e414164547bfada87d2e8d13;p=platform%2Fupstream%2Fenlightenment.git since we do strlen, no need to strcpy SVN revision: 55773 --- diff --git a/src/bin/e_widget_fsel.c b/src/bin/e_widget_fsel.c index 3ec0673..90f849e 100644 --- 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)) {