diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index ee7ee729ca91..959689a80307 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -422,8 +422,8 @@ show_var(int *oid, int nlen) else printf("%s%ld", val, *(long *)p); val = " "; - len -= sizeof (int); - p += sizeof (int); + len -= sizeof (long); + p += sizeof (long); } return (0);