aboutsummaryrefslogtreecommitdiffstats
path: root/kerberos.c
diff options
context:
space:
mode:
Diffstat (limited to 'kerberos.c')
-rw-r--r--kerberos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberos.c b/kerberos.c
index b329b12f..15c8ee7e 100644
--- a/kerberos.c
+++ b/kerberos.c
@@ -216,7 +216,7 @@ int do_rfc1731(int sock, char *command, char *truename)
des_ecb_encrypt((des_cblock *)buf2, (des_cblock *)buf2, schedule, 0);
memcpy(challenge2.cstr, buf2, 4);
- if (ntohl(challenge2.cint) != challenge1.cint + 1) {
+ if ((int32)ntohl(challenge2.cint) != challenge1.cint + 1) {
report(stderr, GT_("challenge mismatch\n"));
return PS_AUTHFAIL;
}
@@ -236,7 +236,7 @@ int do_rfc1731(int sock, char *command, char *truename)
authenticator.dat[4] = 1;
len = strlen(tktuser);
- strncpy(authenticator.dat+8, tktuser, len);
+ strncpy((char *)authenticator.dat+8, tktuser, len);
authenticator.length = len + 8 + 1;
while (authenticator.length & 7) {
authenticator.length++;