From b859ce0a44d60e922095f388f25a013f68ddbdd4 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Thu, 19 Jul 2012 22:09:44 +0000 Subject: Fix transposed memset parameters causing build failure with GCC. svn path=/trunk/; revision=43834 --- cfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cfile.c') 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; } -- cgit v1.2.1