* conv_creds.c (krb5int_encode_v4tkt): Unsigned vs signed warning fix
authorEzra Peisach <epeisach@mit.edu>
Tue, 25 May 2004 18:07:49 +0000 (18:07 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 25 May 2004 18:07:49 +0000 (18:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16360 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/conv_creds.c

index 3bc26d062d195f83ce007a210a04bfa15e9c4cf5..f51b665ef8329169f9b1972c77e01fe62ae2dac7 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-25  Ezra Peisach  <epeisach@mit.edu>
+
+       * conv_creds.c (krb5int_encode_v4tkt): Unsigned vs signed warning fix.
+
 2004-05-24  Ezra Peisach  <epeisach@mit.edu>
 
        * t_ser.c (ser_keytab_test): Cleanup memory leak of forgetting to
index d61b0a3b5774b4abc64f443b69269c158d85d1e5..68af73301616d2da864fd0a82d7a10067bd0b709 100644 (file)
@@ -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;