aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-20 22:25:20 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-20 22:25:20 +0000
commit275ce1d2a4533cb3f76dd246f9eda5c4c7a25c34 (patch)
tree5147fa261c85e93b2d133793aa8b3b5bc8d1cea3 /src/common/compat.c
parentb6e6b7101b43040632d3d171ec465086ea188f44 (diff)
downloadtor-275ce1d2a4533cb3f76dd246f9eda5c4c7a25c34.tar
tor-275ce1d2a4533cb3f76dd246f9eda5c4c7a25c34.tar.gz
r11852@catbus: nickm | 2007-02-20 17:25:17 -0500
Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks! svn:r9604
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index b06ac414b..17676a4b7 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -280,7 +280,7 @@ tor_munmap_file(tor_mmap_t *handle)
{
char *d = (char*)handle->data;
tor_free(d);
- memset(handle, sizeof(tor_mmap_t), 0);
+ memset(handle, 0, sizeof(tor_mmap_t));
tor_free(handle);
}
#endif