From e7db789e82a7a2edc5c7e8230265f8ec83021f69 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Feb 2008 19:09:45 +0000 Subject: r14399@tombo: nickm | 2008-02-22 14:09:38 -0500 More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680 --- src/or/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/connection.c') diff --git a/src/or/connection.c b/src/or/connection.c index 8243e61110..554d9a29ab 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2561,10 +2561,10 @@ alloc_http_authenticator(const char *authenticator) { /* an authenticator in Basic authentication * is just the string "username:password" */ - const int authenticator_length = strlen(authenticator); + const size_t authenticator_length = strlen(authenticator); /* The base64_encode function needs a minimum buffer length * of 66 bytes. */ - const int base64_authenticator_length = (authenticator_length/48+1)*66; + const size_t base64_authenticator_length = (authenticator_length/48+1)*66; char *base64_authenticator = tor_malloc(base64_authenticator_length); if (base64_encode(base64_authenticator, base64_authenticator_length, authenticator, authenticator_length) < 0) { -- cgit v1.2.3-54-g00ecf