diff options
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r-- | plugins/YahooGroups/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp index 36506bf4f2..67a80646e6 100644 --- a/plugins/YahooGroups/src/utils.cpp +++ b/plugins/YahooGroups/src/utils.cpp @@ -103,12 +103,12 @@ char *BinToHex(int size, PBYTE data) szresult = (char *) new char[ maxSize ];
memset(szresult, 0, maxSize);
mir_snprintf(buffer, SIZEOF(buffer), "%0*X", HEX_SIZE, size);
- strcpy(szresult, buffer);
+ mir_strcpy(szresult, buffer);
int i;
for (i = 0; i < size; i++)
{
mir_snprintf(buffer, SIZEOF(buffer), "%02X", data[i]);
- strcpy(szresult + (HEX_SIZE + i * 2), buffer);
+ mir_strcpy(szresult + (HEX_SIZE + i * 2), buffer);
}
return szresult;
}
@@ -116,7 +116,7 @@ char *BinToHex(int size, PBYTE data) void HexToBin(char *inData, ULONG &size, LPBYTE &outData)
{
char buffer[32] = {0};
- strcpy(buffer, "0x");
+ mir_strcpy(buffer, "0x");
strncpy(buffer + 2, inData, HEX_SIZE);
sscanf(buffer, "%x", &size);
outData = (unsigned char*)new char[size*2];
|