patch-base64_cpp 1.1 KB

1234567891011121314151617181920
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- cbtt80-20060211-src.orig/base64.cpp 2006-02-07 18:44:58.000000000 +0100
  3. +++ cbtt80-20060211-src/base64.cpp 2009-06-01 19:00:07.000000000 +0200
  4. @@ -112,7 +112,7 @@ uchar pBase64[] = {
  5. /* Returns: bool - True (!0) if the operation was successful. */
  6. /* False (0) if the operation was unsuccessful. */
  7. /*---------------------------------------------------------------------------*/
  8. -char *b64decode(const char *s)
  9. +char *b64decode(char *s)
  10. {
  11. int l = strlen(s); // Get length of Base64 string.
  12. char *b; // Decoding buffer pointers.
  13. @@ -121,7 +121,6 @@ char *b64decode(const char *s)
  14. int y = 0;
  15. static // Collating sequence...
  16. - const // ...independant "===".
  17. char pPad[] = {0x3d, 0x3d, 0x3d, 0x00};
  18. if (l % 4) // If it's not modulo 4, then it...