summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-15 20:00:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-15 20:00:45 +0000
commitf440b596fc8670be8ea3fb1ec31322a3e4e4b9c7 (patch)
treee23e013e2e54c1e99ed6597c7b07ab4c8e8e9921 /plugins/CryptoPP
parent623722f7cc4c20d2b7d8df03035801acacda6018 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP')
-rw-r--r--plugins/CryptoPP/src/GPGw/tools.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CryptoPP/src/GPGw/tools.cpp b/plugins/CryptoPP/src/GPGw/tools.cpp
index 6886088e4e..17d3303739 100644
--- a/plugins/CryptoPP/src/GPGw/tools.cpp
+++ b/plugins/CryptoPP/src/GPGw/tools.cpp
@@ -28,8 +28,8 @@ void replace(char *atext, const char *apattern, const char *areplacement)
long replacementsize;
pos=atext;
- patternsize=strlen(apattern);
- replacementsize=strlen(areplacement);
+ patternsize = (long)strlen(apattern);
+ replacementsize = (long)strlen(areplacement);
do
{
@@ -40,7 +40,7 @@ void replace(char *atext, const char *apattern, const char *areplacement)
if(pos==NULL) break;
// laenge des textes ermitteln
- textsize=strlen(last);
+ textsize = (long)strlen(last);
// platz schaffen
memmove(pos+replacementsize, pos+patternsize, textsize-((pos-last)+patternsize)+1);
// ersetzen
@@ -77,12 +77,12 @@ void getLastPart(char *aresult, char *atext)
void appendText(char **abuffer, const char *atext, int atextsize)
{
- int size;
+ size_t size;
if (*abuffer==NULL) size=0;
- else size=strlen(*abuffer);
+ else size = strlen(*abuffer);
size++; // abschliessende 0
- if(atextsize==0) atextsize=strlen(atext);
+ if(atextsize==0) atextsize = (int)strlen(atext);
size+=atextsize;
*abuffer=(char *)realloc(*abuffer, size);