netmap pkt-gen tool: Fix memset(3) argument order

Submitted by:	Michael McConville <mmcco AT mykolab.com>
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2017-12-13 19:36:29 +00:00
parent f134051fcf
commit b797f66c80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326832

View File

@ -612,7 +612,7 @@ dump_payload(const char *_p, int len, struct netmap_ring *ring, int cur)
ring->slot[cur].flags, len);
/* hexdump routine */
for (i = 0; i < len; ) {
memset(buf, sizeof(buf), ' ');
memset(buf, ' ', sizeof(buf));
sprintf(buf, "%5d: ", i);
i0 = i;
for (j=0; j < 16 && i < len; i++, j++)