diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-04 19:49:34 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-04 19:49:34 +0200 |
commit | 8a2754e0fbdea7497281327f2896be2a1253a107 (patch) | |
tree | bc7c400745fde54e6fb7a010fcb026258564d3bc /package/cbtt/patches/patch-base64_cpp | |
parent | 9bd4456c5a83c3474fdf9fe5cf14004a0874e2c8 (diff) | |
parent | 2d3aaf1664850031f5497e121dc82ab65f63641a (diff) |
Merge branch 'master' of ssh://openadk.org/git/openadk
Diffstat (limited to 'package/cbtt/patches/patch-base64_cpp')
-rw-r--r-- | package/cbtt/patches/patch-base64_cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/cbtt/patches/patch-base64_cpp b/package/cbtt/patches/patch-base64_cpp new file mode 100644 index 000000000..d69e6f997 --- /dev/null +++ b/package/cbtt/patches/patch-base64_cpp @@ -0,0 +1,20 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- cbtt80-20060211-src.orig/base64.cpp 2006-02-07 18:44:58.000000000 +0100 ++++ cbtt80-20060211-src/base64.cpp 2009-06-01 19:00:07.000000000 +0200 +@@ -112,7 +112,7 @@ uchar pBase64[] = { + /* Returns: bool - True (!0) if the operation was successful. */
+ /* False (0) if the operation was unsuccessful. */
+ /*---------------------------------------------------------------------------*/
+-char *b64decode(const char *s)
++char *b64decode(char *s)
+ {
+ int l = strlen(s); // Get length of Base64 string.
+ char *b; // Decoding buffer pointers.
+@@ -121,7 +121,6 @@ char *b64decode(const char *s)
+ int y = 0;
+
+ static // Collating sequence...
+- const // ...independant "===".
+ char pPad[] = {0x3d, 0x3d, 0x3d, 0x00};
+
+ if (l % 4) // If it's not modulo 4, then it...
|