diff options
Diffstat (limited to 'plugins/SecureIM/src')
-rw-r--r-- | plugins/SecureIM/src/options.cpp | 16 | ||||
-rw-r--r-- | plugins/SecureIM/src/svcs_rsa.cpp | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp index 173447a1bb..8c5aa20bbb 100644 --- a/plugins/SecureIM/src/options.cpp +++ b/plugins/SecureIM/src/options.cpp @@ -1047,7 +1047,7 @@ void RefreshPGPDlg(HWND hDlg, BOOL iInit) if (bPGPloaded && ver) {
char pgpVerStr[64];
- sprintf(pgpVerStr, Translate(sim218), ver >> 24, (ver >> 16) & 255, (ver >> 8) & 255);
+ mir_snprintf(pgpVerStr, SIZEOF(pgpVerStr), Translate(sim218), ver >> 24, (ver >> 16) & 255, (ver >> 8) & 255);
SetDlgItemText(hDlg, IDC_PGP_SDK, pgpVerStr);
}
else SetDlgItemText(hDlg, IDC_PGP_SDK, Translate(sim219));
@@ -1303,8 +1303,8 @@ void ApplyProtoSettings(HWND hDlg) pSupPro p = arProto[ getListViewProto(hLV,i) ];
p->inspecting = ListView_GetCheckState(hLV,i);
char tmp[128];
- sprintf(tmp, "%s:%d:%d:%d;", p->name, p->inspecting, p->tsplit_on, p->tsplit_off);
- strcat(szNames,tmp);
+ mir_snprintf(tmp, SIZEOF(tmp), "%s:%d:%d:%d;", p->name, p->inspecting, p->tsplit_on, p->tsplit_off);
+ strcat(szNames, tmp);
p->split_on = p->tsplit_on;
p->split_off = p->tsplit_off;
i = ListView_GetNextItem(hLV,i,LVNI_ALL);
@@ -1542,15 +1542,15 @@ void ListView_Sort(HWND hLV, LPARAM lParamSort) char t[32];
// restore sort column
- sprintf(t,"os%02x",(UINT)lParamSort&0xF0);
- if ((lParamSort&0x0F) == 0)
- lParamSort=(int)db_get_b(0, MODULENAME, t, lParamSort+1);
+ mir_snprintf(t, SIZEOF(t), "os%02x", (UINT)lParamSort & 0xF0);
+ if ((lParamSort & 0x0F) == 0)
+ lParamSort = (int)db_get_b(0, MODULENAME, t, lParamSort + 1);
db_set_b(0, MODULENAME, t, (BYTE)lParamSort);
// restore sort order
- sprintf(t,"os%02x",(UINT)lParamSort);
- int m=db_get_b(0, MODULENAME, t, 0);
+ mir_snprintf(t, SIZEOF(t), "os%02x", (UINT)lParamSort);
+ int m = db_get_b(0, MODULENAME, t, 0);
if (bChangeSortOrder){ m=!m; db_set_b(0, MODULENAME, t, m); }
ListView_SortItems(hLV,&CompareFunc,lParamSort|(m<<8));
diff --git a/plugins/SecureIM/src/svcs_rsa.cpp b/plugins/SecureIM/src/svcs_rsa.cpp index 1ef0ecbbb0..22035d17bc 100644 --- a/plugins/SecureIM/src/svcs_rsa.cpp +++ b/plugins/SecureIM/src/svcs_rsa.cpp @@ -118,11 +118,11 @@ void __cdecl rsa_notify(HANDLE context, int state) case -0x60:
{
char buf[1024];
- sprintf(buf,sim510,-state);
- showPopupDCmsg(ptr->hContact,buf);
+ mir_snprintf(buf, SIZEOF(buf), sim510, -state);
+ showPopupDCmsg(ptr->hContact, buf);
ShowStatusIconNotify(ptr->hContact);
if (ptr->cntx) deleteRSAcntx(ptr);
- waitForExchange(ptr,3); // досылаем нешифровано
+ waitForExchange(ptr, 3); // досылаем нешифровано
}
return;
|