diff --git a/lib/libc/gen/__xuname.c b/lib/libc/gen/__xuname.c index f385eb2a4c90..6f7d92a1708a 100644 --- a/lib/libc/gen/__xuname.c +++ b/lib/libc/gen/__xuname.c @@ -133,7 +133,7 @@ __xuname(int namesize, void *namebuf) mib[1] = HW_MACHINE; len = namesize; oerrno = errno; - if (sysctl(mib, 2, &q, &len, NULL, 0) == -1) { + if (sysctl(mib, 2, q, &len, NULL, 0) == -1) { if (errno == ENOMEM) errno = oerrno; else