summaryrefslogtreecommitdiff
path: root/www/dfileserver/files/patch-src_contrib_Base64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/dfileserver/files/patch-src_contrib_Base64.cpp')
-rw-r--r--www/dfileserver/files/patch-src_contrib_Base64.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/www/dfileserver/files/patch-src_contrib_Base64.cpp b/www/dfileserver/files/patch-src_contrib_Base64.cpp
new file mode 100644
index 000000000000..8d7fc4f0b8d3
--- /dev/null
+++ b/www/dfileserver/files/patch-src_contrib_Base64.cpp
@@ -0,0 +1,36 @@
+--- src/contrib/Base64.cpp.orig 2005-09-30 05:15:19 UTC
++++ src/contrib/Base64.cpp
+@@ -27,11 +27,12 @@ static string cvt = "ABCDEFGHIJKLM
+
+ string Base64::encode(string data)
+ {
+- auto string::size_type i;
+- auto char c;
+- auto string::size_type len = data.length();
+- auto string ret;
++ std::string::size_type i;
++ std::string::size_type len;
++ char c;
++ string ret;
+
++ len = data.length();
+ for (i = 0; i < len; ++i)
+ {
+ c = (data[i] >> 2) & 0x3f;
+@@ -71,11 +72,11 @@ string Base64::encode(string data)
+
+ string Base64::decode(string data)
+ {
+- auto string::size_type i;
+- auto char c;
+- auto char c1;
+- auto string::size_type len = data.length();
+- auto string ret;
++ string::size_type i;
++ char c;
++ char c1;
++ string::size_type len = data.length();
++ string ret;
+
+ for (i = 0; i < len; ++i)
+ {