Eliminate some more warnings and hide less warnings in VS

This commit is contained in:
Berke Viktor
2012-11-10 18:26:45 +01:00
parent 584b89bb02
commit ed970381fb
8 changed files with 53 additions and 28 deletions
+9 -3
View File
@@ -1379,15 +1379,21 @@ base64_encode (char *to, char *from, unsigned int len)
}
if (len)
{
char three[3]={0,0,0};
int i=0;
for (i=0;i<len;i++)
char three[3] = {0,0,0};
unsigned int i;
for (i = 0; i < len; i++)
{
three[i] = *from++;
}
three_to_four (three, to);
if (len == 1)
{
to[2] = to[3] = '=';
}
else if (len == 2)
{
to[3] = '=';
}
to += 4;
};
to[0] = 0;