From: Nick Mathewson Date: Sat, 7 Aug 2004 01:18:02 +0000 (+0000) Subject: fencepost X-Git-Tag: tor-0.0.8pre3~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2091dab7f4617dbf2d4fdbf07c0f36dcaf7c50dc;p=thirdparty%2Ftor.git fencepost svn:r2178 --- diff --git a/src/common/util.c b/src/common/util.c index 717285babe..395e624ff1 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -245,7 +245,7 @@ const char *hex_str(const char *from, int fromlen) static char buf[65]; if (fromlen>(sizeof(buf)-1)/2) fromlen = (sizeof(buf)-1)/2; - base16_encode(buf,64,from,fromlen); + base16_encode(buf,sizeof(buf),from,fromlen); return buf; }