summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/appl/kf/kfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/appl/kf/kfd.c')
-rw-r--r--crypto/heimdal/appl/kf/kfd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/heimdal/appl/kf/kfd.c b/crypto/heimdal/appl/kf/kfd.c
index c358b54..9d8c84c 100644
--- a/crypto/heimdal/appl/kf/kfd.c
+++ b/crypto/heimdal/appl/kf/kfd.c
@@ -32,7 +32,7 @@
*/
#include "kf_locl.h"
-RCSID("$Id: kfd.c,v 1.11 2003/04/16 15:40:24 lha Exp $");
+RCSID("$Id: kfd.c 15246 2005-05-27 13:47:20Z lha $");
krb5_context context;
char krb5_tkfile[MAXPATHLEN];
@@ -112,7 +112,7 @@ kfd_match_version(const void *arg, const char *version)
version[0] == '0' &&
version[1] == '.' &&
(version[2] == '4' || version[2] == '3') &&
- islower(version[3])) {
+ islower((unsigned char)version[3])) {
protocol_version = 0;
return TRUE;
}
@@ -235,7 +235,8 @@ proto (int sock, const char *service)
if (tk_file.length != 1)
snprintf (ccname, sizeof(ccname), "%s", (char *)(tk_file.data));
else
- snprintf (ccname, sizeof(ccname), "FILE:/tmp/krb5cc_%u",pwd->pw_uid);
+ snprintf (ccname, sizeof(ccname), "FILE:/tmp/krb5cc_%lu",
+ (unsigned long)pwd->pw_uid);
status = krb5_cc_resolve (context, ccname, &ccache);
if (status) {
OpenPOWER on IntegriCloud