aboutsummaryrefslogtreecommitdiff
path: root/src/base64.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-02 00:01:11 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-02 00:01:11 +0300
commit51cf464f7450ee31e3a986b521f90cc6195bb2fb (patch)
tree8ba28ebba364d3505c946e987c2169912cc153c4 /src/base64.cpp
parentbbead93c1a00a1c31956e12c94717f179ac5b84b (diff)
downloadminetest-51cf464f7450ee31e3a986b521f90cc6195bb2fb.tar.xz
Fixed the password crash on Windows
Diffstat (limited to 'src/base64.cpp')
-rw-r--r--src/base64.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base64.cpp b/src/base64.cpp
index 2a863d161..0dfba5013 100644
--- a/src/base64.cpp
+++ b/src/base64.cpp
@@ -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 += '=';*/
}