Explorar el Código

fencepost

svn:r2178
Nick Mathewson hace 21 años
padre
commit
2091dab7f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 }