improve string copying.

SVN revision: 39956
This commit is contained in:
Gustavo Sverzut Barbieri 2009-04-11 04:40:01 +00:00
parent 04e9e183bd
commit 44a5dff5f9
1 changed files with 2 additions and 2 deletions

View File

@ -626,7 +626,7 @@ _e_fwin_desktop_run(Efreet_Desktop *desktop, E_Fwin *fwin)
if (ext == E_FWIN_EXEC_NONE)
{
if (!((ici->link) && (ici->mount)))
snprintf(buf, sizeof(buf), "%s", ici->file);
ecore_strlcpy(buf, ici->file, sizeof(buf));
}
else
_e_fwin_file_exec(fwin, ici, ext);
@ -854,7 +854,7 @@ _e_fwin_window_title_set(E_Fwin *fwin)
if (file)
{
snprintf(buf, sizeof(buf), "%s", file);
ecore_strlcpy(buf, file, sizeof(buf));
e_win_title_set(fwin->win, buf);
}
}