mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
remove non-germane comment
svn:r6640
This commit is contained in:
parent
8fa8616ec7
commit
73ada60d64
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user