diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 10:38:16 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 10:38:16 +0000 |
commit | 6c7c1bdcfd6c306a900c92ea0c2eca75fc662052 (patch) | |
tree | 10b82152117894da40d426434d7f38d87125a1d6 /protocols/Skype/src/base64/base64.cpp | |
parent | 5cf06122b92f89b3937c74e065e6a47067663563 (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/base64/base64.cpp')
-rw-r--r-- | protocols/Skype/src/base64/base64.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/Skype/src/base64/base64.cpp b/protocols/Skype/src/base64/base64.cpp index f9e4aae760..4cd1ebf007 100644 --- a/protocols/Skype/src/base64/base64.cpp +++ b/protocols/Skype/src/base64/base64.cpp @@ -2,10 +2,10 @@ char Base64::CharBase64[] =
{
- 'A','B','C','D','E','F','G','H','I','J','K','L','M ','N','O','P',
- 'Q','R','S','T','U','V','W','X','Y','Z','a','b','c ','d','e','f',
- 'g','h','i','j','k','l','m','n','o','p','q','r','s ','t','u','v',
- 'w','x','y','z','0','1','2','3','4','5','6','7','8 ','9','+','/'
+ 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
+ 'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
+ 'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',
+ 'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/'
};
ULONG Base64::Encode(const char *inputString, char *outputBuffer, SIZE_T nMaxLength)
@@ -15,7 +15,8 @@ ULONG Base64::Encode(const char *inputString, char *outputBuffer, SIZE_T nMaxLen for (unsigned int i = 0; i < ::strlen(inputString); i += 3)
{
- if (outpos + 4 >= (int)nMaxLength)break;
+ if (outpos + 4 >= (int)nMaxLength)
+ break;
chr[0] = inputString[i];
chr[1] = inputString[i+1];
|