/*
- * Base 64 Encoding & Decoding
+ * UCW Library -- Base 64 Encoding & Decoding
*
* (c) 2002, Robert Spalek <robert@ucw.cz>
*
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
#undef LOCAL_DEBUG
base64_decode(byte *dest, byte *src, uns len)
{
byte *current = src;
- byte ch;
+ uns ch;
uns i = 0, j = 0;
static byte reverse_table[256];
static uns table_built = 0;
headache. - Turadg Aleahmad <turadg@wise.berkeley.edu>
*/
- if (ch == ' ') ch = '+';
+ if (ch == ' ') ch = '+';
ch = reverse_table[ch];
if (ch == 0xff) continue;