summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-23 19:23:02 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-23 19:23:02 +0000
commit90e458dac28dc98d60ab00b35ddcfd09fb46811a (patch)
treedc598dd8f32d8ecf14989d54d325ae11502bb8d8 /plugins/SeenPlugin/src
parent3b05e84e27e50e8b44cb86cbc0a8eb1b639d7223 (diff)
replace sprintf to mir_snprintf (part 3)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5461 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin/src')
-rw-r--r--plugins/SeenPlugin/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp
index 19d1daf1ac..16d7220d19 100644
--- a/plugins/SeenPlugin/src/utils.cpp
+++ b/plugins/SeenPlugin/src/utils.cpp
@@ -179,18 +179,18 @@ TCHAR *ParseString(TCHAR *szstring, HANDLE hcontact, BYTE isfile)
switch(*++p) {
case 'Y':
if (!st.wYear) goto LBL_noData;
- d += _stprintf(d, _T("%04i"), st.wYear);
+ d += _stprintf(d, _T("%04i"), st.wYear); //!!!!!!!!!!!!
break;
case 'y':
if (!st.wYear) goto LBL_noData;
- d += _stprintf(d, _T("%02i"), st.wYear % 100);
+ d += _stprintf(d, _T("%02i"), st.wYear % 100); //!!!!!!!!!!!!
break;
case 'm':
if (!(isetting=st.wMonth)) goto LBL_noData;
LBL_2DigNum:
- d += _stprintf(d, _T("%02i"), isetting);
+ d += _stprintf(d, _T("%02i"), isetting); //!!!!!!!!!!!!
break;
case 'd':
@@ -478,7 +478,7 @@ void ShowPopup(HANDLE hcontact, const char * lpzProto, int newStatus)
DBVARIANT dbv;
char szSetting[10];
- sprintf(szSetting, "Col_%d",newStatus-ID_STATUS_OFFLINE);
+ mir_snprintf(szSetting, SIZEOF(szSetting), "Col_%d", newStatus - ID_STATUS_OFFLINE);
DWORD sett = db_get_dw(NULL, S_MOD, szSetting, StatusColors15bits[newStatus-ID_STATUS_OFFLINE]);
POPUPDATAT ppd = {0};