Module: wine Branch: master Commit: 3229c3de92dfba4fd32d55a28b09ef42514800d7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3229c3de92dfba4fd32d55a28b...
Author: Tomasz Jezierski developers@tefnet.pl Date: Tue Apr 22 09:39:48 2008 +0200
shell32: Secure filename copy to fixed size variable wfileName.
---
dlls/shell32/shlexec.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 794d0bd..fec7870 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -1711,10 +1711,10 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc ) } }
- strcpyW(wfileName, sei_tmp.lpFile); + lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR)); } } else - strcpyW(wfileName, sei_tmp.lpFile); + lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
lpFile = wfileName;