Eliminate some more warnings and hide less warnings in VS
This commit is contained in:
+9
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user