Browse Source

perhaps the reason I rail against cut-and-paste programming so vehemently is that I am so bad at it.

svn:r6638
Nick Mathewson 18 years ago
parent
commit
f83a628a76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.h

+ 1 - 1
src/common/util.h

@@ -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"