]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make a cast less const-violating; make a field size explicit.
authorNick Mathewson <nickm@torproject.org>
Mon, 7 May 2012 15:09:02 +0000 (11:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 May 2012 15:09:02 +0000 (11:09 -0400)
src/or/rendmid.c

index 391eab7f8284c552fc7e3f4f269da9624412f8d4..894bbb3c5456d0a61840110150fc62f04ee10739 100644 (file)
@@ -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.",