From 58db6dc9eef552f8e1736506eeac38e05b50f0c3 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 5 Dec 2001 23:30:25 +0000 Subject: [PATCH] * 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 --- src/lib/crypto/arcfour/ChangeLog | 6 ++++++ src/lib/crypto/arcfour/string_to_key.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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; -- 2.26.2