Fix transposed memset parameters causing build failure with GCC.

svn path=/trunk/; revision=43834
This commit is contained in:
Evan Huus 2012-07-19 22:09:44 +00:00
parent 0da59a0058
commit b859ce0a44
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}