aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-20 17:30:00 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-20 17:30:00 +0000
commitb30c1637bd3a4c420ba75bb6ace45ba704e1f286 (patch)
treeaa886b37e170b15c3d6cc0f7b67778d4e44e00d0 /src/common/container.h
parentdc949b846a0d41ed4450723d1dd17f15ef37a7dd (diff)
downloadtor-b30c1637bd3a4c420ba75bb6ace45ba704e1f286.tar
tor-b30c1637bd3a4c420ba75bb6ace45ba704e1f286.tar.gz
One last tweak on debugging code.
svn:r13621
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/container.h b/src/common/container.h
index 058f22ef5..0f17fa999 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -348,7 +348,8 @@ bitarray_expand(bitarray_t *ba,
ptr = tor_realloc(ba, sz_new*sizeof(unsigned int));
/* This memset does nothing to the older excess bytes. But they were
* already set to 0 by bitarry_init_zero. */
- memset(ptr+sz_old, 0, (sz_new-sz_old)*sizeof(unsigned int));
+ memset(ptr+sz_old*sizeof(unsigned int), 0,
+ (sz_new-sz_old)*sizeof(unsigned int));
return (bitarray_t*) ptr;
}
/** Free the bit array <b>ba</b>. */