1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fixed the password crash on Windows

This commit is contained in:
Perttu Ahola 2011-06-02 00:01:11 +03:00
parent bbead93c1a
commit 51cf464f74
5 changed files with 18 additions and 8 deletions

View file

@ -71,9 +71,10 @@ std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_
for (j = 0; (j < i + 1); j++)
ret += base64_chars[char_array_4[j]];
while((i++ < 3))
ret += '=';
// Don't pad it with =
/*while((i++ < 3))
ret += '=';*/
}