diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-25 10:34:35 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-25 10:34:35 +0000 |
commit | 9084f49286547cdd9043015b8c2088c1c7dc27bd (patch) | |
tree | 3cc9e92b74565df8fe3d60ea7628edca69639cf4 /base64.c | |
parent | 39b9add3ccc3aabad2382b06d4fbdbae41f53e63 (diff) | |
download | fetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.tar.gz fetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.tar.bz2 fetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.zip |
Properly cast arguments of ctype is*()/to*() functions to unsigned char.
svn path=/trunk/; revision=4324
Diffstat (limited to 'base64.c')
-rw-r--r-- | base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ static const char base64val[] = { BAD, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,BAD, BAD,BAD,BAD,BAD }; -#define DECODE64(c) (isascii(c) ? base64val[c] : BAD) +#define DECODE64(c) (isascii((unsigned char)(c)) ? base64val[c] : BAD) void to64frombits(unsigned char *out, const unsigned char *in, int inlen) /* raw bytes in quasi-big-endian order to base 64 string (NUL-terminated) */ |