From a67927ff45a5e88a62c33b48f3643ebf5dd69394 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Dec 2014 14:23:01 +0000 Subject: type conversion warnings fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@11462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/mails/decode.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/YAMN') diff --git a/plugins/YAMN/src/mails/decode.cpp b/plugins/YAMN/src/mails/decode.cpp index f87658547e..64bbc47ad1 100644 --- a/plugins/YAMN/src/mails/decode.cpp +++ b/plugins/YAMN/src/mails/decode.cpp @@ -221,7 +221,7 @@ int GetCharsetFromString(char *input,size_t size) *parser++=*pin++; } - *parser=(char)0; + *parser = 0; #ifdef DEBUG_DECODECODEPAGE DebugLog(DecodeFile,"%s",pout); @@ -300,7 +300,7 @@ int DecodeQuotedPrintable(char *Src,char *Dst,int DstLen, BOOL isQ) char *DstTemp=Dst; DebugLog(DecodeFile,"%s",Src); #endif - for (int Counter=0;((char)*Src != 0) && DstLen && (Counter++%s",DstTemp); #endif @@ -494,8 +494,7 @@ void ConvertCodedStringToUnicode(char *stream,WCHAR **storeto,DWORD cp,int mode) finder++; finderend--; } - //*finderend=(char)0; - char * oneWordEncoded = new char[finderend-finder+1]; + char *oneWordEncoded = new char[finderend-finder+1]; strncpy(oneWordEncoded,finder,finderend-finder); oneWordEncoded[finderend-finder]=0; switch(Encoding) -- cgit v1.2.3