sysctl: don't overflow the user-supplied buffer with '\0'