From: Nick Mathewson Date: Sun, 18 Jun 2006 07:32:31 +0000 (+0000) Subject: perhaps the reason I rail against cut-and-paste programming so vehemently is that... X-Git-Tag: tor-0.1.1.23~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83a628a76b1d4a229c35e6e2612a345e0d90d39;p=thirdparty%2Ftor.git perhaps the reason I rail against cut-and-paste programming so vehemently is that I am so bad at it. svn:r6638 --- diff --git a/src/common/util.h b/src/common/util.h index 0518136816..56e95c6c4e 100644 --- a/src/common/util.h +++ b/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"