From 4278bd5a033abdcee8d826971274302441fc4866 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 25 May 2004 18:07:49 +0000 Subject: [PATCH] * conv_creds.c (krb5int_encode_v4tkt): Unsigned vs signed warning fix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16360 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 4 ++++ src/lib/krb5/krb/conv_creds.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 3bc26d062..f51b665ef 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +2004-05-25 Ezra Peisach + + * conv_creds.c (krb5int_encode_v4tkt): Unsigned vs signed warning fix. + 2004-05-24 Ezra Peisach * t_ser.c (ser_keytab_test): Cleanup memory leak of forgetting to diff --git a/src/lib/krb5/krb/conv_creds.c b/src/lib/krb5/krb/conv_creds.c index d61b0a3b5..68af73301 100644 --- a/src/lib/krb5/krb/conv_creds.c +++ b/src/lib/krb5/krb/conv_creds.c @@ -191,7 +191,8 @@ int krb5int_encode_v4tkt(v4tkt, buf, encoded_len) buflen = *encoded_len; if (v4tkt->length < MAX_KTXT_LEN) - memset(v4tkt->dat + v4tkt->length, 0, MAX_KTXT_LEN - v4tkt->length); + memset(v4tkt->dat + v4tkt->length, 0, + (unsigned int) (MAX_KTXT_LEN - v4tkt->length)); temp = v4tkt->length; if ((ret = encode_int32(&buf, &buflen, &temp))) return ret; -- 2.26.2