[or-cvs] remove non-germane comment

Nick Mathewson nickm at seul.org
Sun Jun 18 07:37:23 UTC 2006


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv23390/src/common

Modified Files:
	util.c 
Log Message:
remove non-germane comment

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -p -d -r1.262 -r1.263
--- util.c	18 Jun 2006 07:22:36 -0000	1.262
+++ util.c	18 Jun 2006 07:37:21 -0000	1.263
@@ -198,10 +198,6 @@ _tor_memdup(const void *mem, size_t len 
   char *dup;
   tor_assert(mem);
   dup = _tor_malloc(len DMALLOC_FN_ARGS);
-  /* Performance note: Ordinarily we prefer strlcpy to strncpy.  But
-   * this function gets called a whole lot, and platform strncpy is
-   * much faster than strlcpy when strlen(s) is much longer than n.
-   */
   memcpy(dup, mem, len);
   return dup;
 }



More information about the tor-commits mailing list