diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-07-30 00:39:09 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-07-30 00:39:09 +0300 |
commit | 90bc9b46847645fae17681b12df6305a28d9c73a (patch) | |
tree | 52388f06e56643d5ccee78c7c335740ffa4f85e2 /src/FileViewer.cpp | |
parent | 3d4ad9603b46938903947012d5c176fc6be48772 (diff) |
trivial fixes
Diffstat (limited to 'src/FileViewer.cpp')
-rwxr-xr-x | src/FileViewer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FileViewer.cpp b/src/FileViewer.cpp index b7765b6..191f744 100755 --- a/src/FileViewer.cpp +++ b/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;
|