From: Ezra Peisach Date: Tue, 25 May 2004 18:07:49 +0000 (+0000) Subject: * conv_creds.c (krb5int_encode_v4tkt): Unsigned vs signed warning fix X-Git-Tag: krb5-1.4-beta1~400 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4278bd5a033abdcee8d826971274302441fc4866;p=krb5.git * 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 --- 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;