summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:33:09 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:33:09 +0000
commitfaccf4803bd25abbb27402ab1127d085efd9061f (patch)
tree36ff52c5affad34aa47c98a18ca246ec474d13ec /src
parentb2fad485cd5b41744ef0cc4a02722c021afd926c (diff)
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/database/profilemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp
index c7bd537245..b15f1a74e4 100644
--- a/src/modules/database/profilemanager.cpp
+++ b/src/modules/database/profilemanager.cpp
@@ -587,7 +587,7 @@ static INT_PTR CALLBACK DlgProfileSelect(HWND hwndDlg, UINT msg, WPARAM wParam,
if (pInfoTip != NULL) {
TCHAR profilename[MAX_PATH], tszFullPath[MAX_PATH];
struct _stat statbuf;
- ListView_GetItemText(hwndList, pInfoTip->iItem, 0, profilename, MAX_PATH);
+ ListView_GetItemText(hwndList, pInfoTip->iItem, 0, profilename, SIZEOF(profilename));
mir_sntprintf(tszFullPath, SIZEOF(tszFullPath), _T("%s\\%s\\%s.dat"), dat->pd->ptszProfileDir, profilename, profilename);
_tstat(tszFullPath, &statbuf);
mir_sntprintf(pInfoTip->pszText, pInfoTip->cchTextMax, _T("%s\n%s: %s\n%s: %s"), tszFullPath, TranslateT("Created"), rtrimt(NEWTSTR_ALLOCA(_tctime(&statbuf.st_ctime))), TranslateT("Modified"), rtrimt(NEWTSTR_ALLOCA(_tctime(&statbuf.st_mtime))));