[miranda] r14451 committed - Fix possible buffer overrun.

2 views
Skip to first unread message

mir...@googlecode.com

unread,
Dec 18, 2013, 10:47:33 AM12/18/13
to miranda-i...@googlegroups.com
Revision: 14451
Author: rain...@gmail.com
Date: Wed Dec 18 15:47:18 2013 UTC
Log: Fix possible buffer overrun.
http://code.google.com/p/miranda/source/detail?r=14451

Modified:
/trunk/miranda/src/modules/srfile/fileexistsdlg.cpp

=======================================
--- /trunk/miranda/src/modules/srfile/fileexistsdlg.cpp Sat Mar 20 00:09:33
2010 UTC
+++ /trunk/miranda/src/modules/srfile/fileexistsdlg.cpp Wed Dec 18 15:47:18
2013 UTC
@@ -58,7 +58,7 @@
WCHAR* wszFilename = ( LPWSTR )szFilename;
#else
WCHAR wszFilename[MAX_PATH];
-
MultiByteToWideChar(CP_ACP,0,szFilename,-1,wszFilename,SIZEOF(wszFilename));
+ MultiByteToWideChar(CP_ACP,0,szFilename,-1,wszFilename,MAX_PATH);
#endif

if(pDesktopFolder->ParseDisplayName(NULL,NULL,wszFilename,NULL,&pCurrentIdl,NULL)==NOERROR)
{
if(pCurrentIdl->mkid.cb) {
Reply all
Reply to author
Forward
0 new messages