summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-04-18 19:12:19 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2015-04-18 19:12:19 +0100
commitb8fc75b3728d523ae83d02de92e1cfb002d25c9d (patch)
treed76c024b1e9db1f85b13a4f53829b0b03e2f319f /src
parenta108e3eae2841ec938041460bcb201e15131c17f (diff)
Fix signedness bug in SPA authenticator
Diffstat (limited to 'src')
-rw-r--r--src/src/auths/auth-spa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/auths/auth-spa.c b/src/src/auths/auth-spa.c
index 7ad5a1de8..9abc7b778 100644
--- a/src/src/auths/auth-spa.c
+++ b/src/src/auths/auth-spa.c
@@ -368,7 +368,7 @@ void mdfour (unsigned char *out, unsigned char *in, int n);
static const char base64digits[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-#define BAD -1
+#define BAD (char) -1
static const char base64val[] = {
BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD, BAD,
BAD,