summaryrefslogtreecommitdiff
path: root/plugins/YahooGroups/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-23 12:32:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-23 12:32:34 +0000
commitf0ff6972eb5fecda4218fcea6686194f1b52e704 (patch)
treeb60680c9ca6f7c5fd8b57a7760c625e0371e05f5 /plugins/YahooGroups/src/utils.cpp
parent8788bb35e10ef5403a08388d33ed4ab2ff7d67df (diff)
various warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5095 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups/src/utils.cpp')
-rw-r--r--plugins/YahooGroups/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp
index fce73b4936..f86520019a 100644
--- a/plugins/YahooGroups/src/utils.cpp
+++ b/plugins/YahooGroups/src/utils.cpp
@@ -141,7 +141,7 @@ int GetStringFromDatabase(HANDLE hContact, char *szModule, char *szSettingName,
if (db_get_s(hContact, szModule, szSettingName, &dbv) == 0)
{
res = 0;
- int tmp = strlen(dbv.pszVal);
+ int tmp = (int)strlen(dbv.pszVal);
len = (tmp < size - 1) ? tmp : size - 1;
strncpy(szResult, dbv.pszVal, len);
szResult[len] = '\0';
@@ -151,7 +151,7 @@ int GetStringFromDatabase(HANDLE hContact, char *szModule, char *szSettingName,
res = 1;
if (szError)
{
- int tmp = strlen(szError);
+ int tmp = (int)strlen(szError);
len = (tmp < size - 1) ? tmp : size - 1;
strncpy(szResult, szError, len);
szResult[len] = '\0';
@@ -174,7 +174,7 @@ int GetStringFromDatabase(HANDLE hContact, char *szModule, char *szSettingName,
if (dbv.type != DBVT_WCHAR)
MultiByteToWideChar(CP_ACP, 0, dbv.pszVal, -1, szResult, count);
else {
- int tmp = wcslen(dbv.pwszVal);
+ int tmp = (int)wcslen(dbv.pwszVal);
len = (tmp < count - 1) ? tmp : count - 1;
wcsncpy(szResult, dbv.pwszVal, len);
szResult[len] = L'\0';
@@ -184,7 +184,7 @@ int GetStringFromDatabase(HANDLE hContact, char *szModule, char *szSettingName,
else {
res = 1;
if (szError) {
- int tmp = wcslen(szError);
+ int tmp = (int)wcslen(szError);
len = (tmp < count - 1) ? tmp : count - 1;
wcsncpy(szResult, szError, len);
szResult[len] = L'\0';