diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Sessions/Src/Main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 9e3f84c8d3..23636235ae 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -540,8 +540,8 @@ int SaveSessionDate() TCHAR *szDateBuf = (TCHAR*)mir_alloc((DateSize+1)*sizeof(TCHAR));
GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, szDateBuf, DateSize );
- TCHAR *szSessionTime = (TCHAR*)mir_alloc((DateSize+TimeSize+5)*sizeof(TCHAR));
- int lenn = (int)_tcslen(szSessionTime);
+ int lenn = (DateSize+TimeSize+5);
+ TCHAR *szSessionTime = (TCHAR*)mir_alloc(lenn*sizeof(TCHAR));
mir_sntprintf(szSessionTime, lenn, _T("%s - %s"), szTimeBuf, szDateBuf);
char szSessionDate[256];
|