diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TipperYM/src/popwin.cpp | 20 | ||||
-rw-r--r-- | plugins/TipperYM/src/preset_items.cpp | 2 |
2 files changed, 13 insertions, 9 deletions
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp index 03682178bb..3b872e1a8b 100644 --- a/plugins/TipperYM/src/popwin.cpp +++ b/plugins/TipperYM/src/popwin.cpp @@ -105,15 +105,17 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa // logon info
TCHAR swzLogon[64];
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogonTS", swzLogon, 59)) {
- _tcscat(swzLogon, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log on:"), swzLogon, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), swzLogon);
+ AddRow(pwd, TranslateT("Log on:"), ago, NULL, false, false, false);
}
// logoff info
TCHAR swzLogoff[64];
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", swzLogoff, 59)) {
- _tcscat(swzLogoff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log off:"), swzLogoff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), swzLogoff);
+ AddRow(pwd, TranslateT("Log off:"), ago, NULL, false, false, false);
}
// number of unread emails
@@ -1571,13 +1573,15 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa if (dwItems & TRAYTIP_LOGON) {
if (TimestampToTimeDifference(NULL, pa->szModuleName, "LogonTS", buff, 59)) {
- _tcscat(buff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log on:"), buff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), buff);
+ AddRow(pwd, TranslateT("Log on:"), ago, NULL, false, false, false);
}
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", buff, 59)) {
- _tcscat(buff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log off:"), buff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), buff);
+ AddRow(pwd, TranslateT("Log off:"), ago, NULL, false, false, false);
}
}
diff --git a/plugins/TipperYM/src/preset_items.cpp b/plugins/TipperYM/src/preset_items.cpp index c9308cb141..04eb82ad99 100644 --- a/plugins/TipperYM/src/preset_items.cpp +++ b/plugins/TipperYM/src/preset_items.cpp @@ -27,7 +27,7 @@ PRESETITEM presetItems[] = "email", LPGENT("Email"), LPGENT("Email:"), _T("%raw:/e-mail%"), 0, 0, 0,
"gender", LPGENT("Gender"), LPGENT("Gender:"), _T("%gender%"), 0, 0, 0,
"homepage", LPGENT("Homepage"), LPGENT("Homepage:"), _T("%raw:/Homepage%"), 0, 0, 0,
- "id", LPGENT("Identifier"), LPGENT("%sys:uidname|UID^!MetaContacts%:"), _T("%sys:uid%"), 0, 0, 0,
+ "id", LPGENT("Identifier"), _T("%sys:uidname|UID^!MetaContacts%:"), _T("%sys:uid%"), 0, 0, 0,
"idle", LPGENT("Idle"), LPGENT("Idle:"), _T("%idle% (%idle_diff% ago)"), "idle", "idlediff", 0,
"ip", LPGENT("IP"), LPGENT("IP:"), _T("%ip%"), "ip", 0, 0,
"ipint", LPGENT("IP internal"), LPGENT("IP internal:"), _T("%ip_internal%"), "ipint", 0, 0,
|