diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 14:42:48 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 14:42:48 +0000 |
commit | 330ff76e913f03653a2db5ef6e4a62885b19ae5e (patch) | |
tree | 0388f038b21772da7978d6dbd5e8ed4f01a629be /plugins/FileAsMessage | |
parent | a368a15aef9556291b0ac790c518b1e0774cf76e (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13618 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage')
-rw-r--r-- | plugins/FileAsMessage/src/dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp index 718c34c9a9..58dfb1fad2 100644 --- a/plugins/FileAsMessage/src/dialog.cpp +++ b/plugins/FileAsMessage/src/dialog.cpp @@ -869,7 +869,7 @@ void CreateDirectoryTree(char *szDir) DWORD dwAttributes;
char *pszLastBackslash, szTestDir[MAX_PATH];
- mir_strncpy(szTestDir, szDir, _TRUNCATE);
+ mir_strncpy(szTestDir, szDir, SIZEOF(szTestDir));
if ((dwAttributes = GetFileAttributes(szTestDir)) != 0xffffffff && (dwAttributes & FILE_ATTRIBUTE_DIRECTORY))
return;
pszLastBackslash = strrchr(szTestDir, '\\');
@@ -936,7 +936,7 @@ LRESULT CALLBACK ProgressWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa for (uint indx = 0; indx < dat->chunkCount; indx++)
{
HBRUSH hbr;
- COLORREF colour;
+ COLORREF colour = 0;
if (dat->inSend && indx == dat->chunkIndx)
colour = dat->rgbToSend;
else
@@ -1169,7 +1169,7 @@ INT_PTR CALLBACK DialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) if (size != -1)
mir_snprintf(str, SIZEOF(str), Translate("Size: %d bytes"), size);
else
- mir_strncpy(str, Translate("Can't get a file size"), _TRUNCATE);
+ mir_strncpy(str, Translate("Can't get a file size"), SIZEOF(str));
SetDlgItemText(hDlg, IDC_FILESIZE, str);
break;
|