]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
remove non-germane comment
authorNick Mathewson <nickm@torproject.org>
Sun, 18 Jun 2006 07:37:21 +0000 (07:37 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 18 Jun 2006 07:37:21 +0000 (07:37 +0000)
svn:r6640

src/common/util.c

index 00888aa72f442968239b1785998c33ac9f5c30f5..33ce40d165569107c200e808332ccac8418714fc 100644 (file)
@@ -198,10 +198,6 @@ _tor_memdup(const void *mem, size_t len DMALLOC_PARAMS)
   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;
 }