Browse Source

fencepost

svn:r2178
Nick Mathewson 21 years ago
parent
commit
2091dab7f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
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;
 }