Fix signedness bug in SPA authenticator
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 18 Apr 2015 18:12:19 +0000 (19:12 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 18 Apr 2015 18:12:19 +0000 (19:12 +0100)
src/src/auths/auth-spa.c

index 7ad5a1de8214a3884ee967f2ad466f5ced013551..9abc7b7789a939f05fbbadbed450620d2f4405c1 100644 (file)
@@ -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,