summaryrefslogtreecommitdiff
path: root/cfile.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-07-19 22:09:44 +0000
committerEvan Huus <eapache@gmail.com>2012-07-19 22:09:44 +0000
commitb859ce0a44d60e922095f388f25a013f68ddbdd4 (patch)
tree9cab32d53f3b29e39c745aa825f20a64337ca609 /cfile.c
parent0da59a005829eb5daf49c6477219a35ac4e73ab3 (diff)
downloadwireshark-b859ce0a44d60e922095f388f25a013f68ddbdd4.tar.gz
Fix transposed memset parameters causing build failure with GCC.
svn path=/trunk/; revision=43834
Diffstat (limited to 'cfile.c')
-rw-r--r--cfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfile.c b/cfile.c
index 1f10716f41..6916ea52d5 100644
--- a/cfile.c
+++ b/cfile.c
@@ -37,6 +37,6 @@ void
cap_file_init(capture_file *cf)
{
/* Initialize the capture file struct */
- memset(cf, sizeof(capture_file), 0);
+ memset(cf, 0, sizeof(capture_file));
cf->snap = WTAP_MAX_PACKET_SIZE;
}