tor callgrinds

Watson Ladd watsonbladd at
Sat Feb 17 02:19:51 UTC 2007

I couldn't help but notice a strncpy in the diagrams. That's
inefficient, and insecure. The reason is that strncpy fills the entire
rest of the  target string with \x00 but might not do it if the sizes
differ. Use strlcpy instead! It's almost a drop in replacement, faster,
and more secure.
Watson Ladd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the tor-dev mailing list