Permalink
Browse files

Fix incorrect use of sizeof().

Coverity CID:	1011303
Approved by:	re (glebius)
Sponsored by:	FreeBSD Foundation
  • Loading branch information...
1 parent 05bb4f6 commit 089479fb9ecc0c054a9f99cabcf665879324770a @trasz trasz committed Oct 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 usr.sbin/ctladm/ctladm.c
@@ -700,7 +700,7 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
} else if ((targ_port == -1) && (port_type == CTL_PORT_NONE))
port_type = CTL_PORT_ALL;
- bzero(&entry, sizeof(&entry));
+ bzero(&entry, sizeof(entry));
/*
* These are needed for all but list/dump mode.

0 comments on commit 089479f

Please sign in to comment.