diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2012-07-29 21:27:07 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2012-07-29 21:27:07 +0000 |
commit | 1a5806272da2ff68484424e60f73ada2f6b092f2 (patch) | |
tree | 8b18f84d04887ffe5e97ff3030dbdcdcc13bab53 /plugins/msg_export/src/FileViewer.cpp | |
parent | daabbc7ce7977b5bc0d38281a10e9b6e8a15b1bb (diff) |
trivial fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@1256 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/msg_export/src/FileViewer.cpp')
-rwxr-xr-x | plugins/msg_export/src/FileViewer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/msg_export/src/FileViewer.cpp b/plugins/msg_export/src/FileViewer.cpp index b7765b6755..191f744571 100755 --- a/plugins/msg_export/src/FileViewer.cpp +++ b/plugins/msg_export/src/FileViewer.cpp @@ -710,11 +710,11 @@ bool bLoadFile( HWND hwndDlg , CLHistoryDlg * pclDlg ) if( nDBCount == -1 )
{
- _stprintf( szTmp , _T("Failed to open file\r\n%s\r\n\r\nContact handle is invalid") , pclDlg->sPath.c_str() );
+ mir_sntprintf(szTmp, 1499, _T("Failed to open file\r\n%s\r\n\r\nContact handle is invalid") , pclDlg->sPath.c_str());
}
else
{
- _stprintf( szTmp , _T("Failed to open file\r\n%s\r\n\r\nMiranda database contains %d events") , pclDlg->sPath.c_str() , nDBCount );
+ mir_sntprintf( szTmp , 1499, _T("Failed to open file\r\n%s\r\n\r\nMiranda database contains %d events") , pclDlg->sPath.c_str() , nDBCount );
}
SETTEXTEX stText = {0};
@@ -784,7 +784,7 @@ bool bLoadFile( HWND hwndDlg , CLHistoryDlg * pclDlg ) //delete [] pabFileData;
_TCHAR szTmp[100];
- _stprintf( szTmp , _T("File open time %d\n") , GetTickCount() - dwStart );
+ mir_sntprintf( szTmp , 99, _T("File open time %d\n") , GetTickCount() - dwStart );
OutputDebugString( szTmp );
@@ -798,7 +798,7 @@ bool bLoadFile( HWND hwndDlg , CLHistoryDlg * pclDlg ) if( ! bScrollToBottom )
SendMessage( hRichEdit , EM_SETSCROLLPOS , 0 , (LPARAM) &ptOldPos );
- _stprintf( szTmp , _T("With scroll to bottom %d\n") , GetTickCount() - dwStart );
+ mir_sntprintf( szTmp , 99, _T("With scroll to bottom %d\n") , GetTickCount() - dwStart );
OutputDebugString( szTmp );
return true;
|