From: Ezra Peisach Date: Wed, 5 Dec 2001 23:30:25 +0000 (+0000) Subject: * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead X-Git-Tag: krb5-1.3-alpha1~919 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58db6dc9eef552f8e1736506eeac38e05b50f0c3;p=krb5.git * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead of int for local variable. (asctouni): Length argument now size_t instead of int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/arcfour/ChangeLog b/src/lib/crypto/arcfour/ChangeLog index fb5968b83..74647d521 100644 --- a/src/lib/crypto/arcfour/ChangeLog +++ b/src/lib/crypto/arcfour/ChangeLog @@ -1,3 +1,9 @@ +2001-12-05 Ezra Peisach + + * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead + of int for local variable. + (asctouni): Length argument now size_t instead of int. + 2001-11-07 Sam Hartman * arcfour.c (krb5_arcfour_encrypt): Set output length diff --git a/src/lib/crypto/arcfour/string_to_key.c b/src/lib/crypto/arcfour/string_to_key.c index 23bebca80..a40f1ff34 100644 --- a/src/lib/crypto/arcfour/string_to_key.c +++ b/src/lib/crypto/arcfour/string_to_key.c @@ -2,7 +2,7 @@ #include "rsa-md4.h" #include "arcfour-int.h" -static void asctouni(unsigned char *unicode, unsigned char *ascii, int len) +static void asctouni(unsigned char *unicode, unsigned char *ascii, size_t len) { int counter; for (counter=0;counterlength)>128)?128:string->length; len=(slen)*2; - copystr = malloc((size_t) len); + copystr = malloc(len); if (copystr == NULL) return ENOMEM;