]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
perhaps the reason I rail against cut-and-paste programming so vehemently is that...
authorNick Mathewson <nickm@torproject.org>
Sun, 18 Jun 2006 07:32:31 +0000 (07:32 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 18 Jun 2006 07:32:31 +0000 (07:32 +0000)
svn:r6638

src/common/util.h

index 0518136816388940fbd947083a879493a0e43087..56e95c6c4e65e18037f6bd0a209218834491e001 100644 (file)
@@ -86,7 +86,7 @@ extern int dmalloc_free(const char *file, const int line, void *pnt,
 #define tor_realloc(ptr, size) _tor_realloc(ptr, size DMALLOC_ARGS)
 #define tor_strdup(s)          _tor_strdup(s DMALLOC_ARGS)
 #define tor_strndup(s, n)      _tor_strndup(s, n DMALLOC_ARGS)
-#define tor_memdup(s, n)      _tor_strndup(s, n DMALLOC_ARGS)
+#define tor_memdup(s, n)       _tor_memdup(s, n DMALLOC_ARGS)
 
 /* String manipulation */
 #define HEX_CHARACTERS "0123456789ABCDEFabcdef"