From: Nick Mathewson Date: Mon, 7 May 2012 15:09:02 +0000 (-0400) Subject: Make a cast less const-violating; make a field size explicit. X-Git-Tag: tor-0.2.3.16-alpha~93^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f84f75c59c6b06fbef41f0f0641b604cf3192eeb;p=thirdparty%2Ftor.git Make a cast less const-violating; make a field size explicit. --- diff --git a/src/or/rendmid.c b/src/or/rendmid.c index 391eab7f82..894bbb3c54 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -293,7 +293,7 @@ rend_mid_rendezvous(or_circuit_t *circ, const uint8_t *request, goto err; } - base16_encode(hexid, 9, (char*)request, 4); + base16_encode(hexid, sizeof(hexid), (const char*)request, 4); log_info(LD_REND, "Got request for rendezvous from circuit %d to cookie %s.",