From f440b596fc8670be8ea3fb1ec31322a3e4e4b9c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Aug 2013 20:00:45 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/src/GPGw/tools.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/CryptoPP') 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); -- cgit v1.2.3