[or-cvs] perhaps the reason I rail against cut-and-paste programming...
Nick Mathewson
nickm at seul.org
Sun Jun 18 07:32:33 UTC 2006
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv22894/src/common
Modified Files:
util.h
Log Message:
perhaps the reason I rail against cut-and-paste programming so vehemently is that I am so bad at it.
Index: util.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.h,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -p -d -r1.159 -r1.160
--- util.h 18 Jun 2006 07:22:36 -0000 1.159
+++ util.h 18 Jun 2006 07:32:31 -0000 1.160
@@ -86,7 +86,7 @@ extern int dmalloc_free(const char *file
#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"
More information about the tor-commits
mailing list