* Use a larger buffer to ensure that a ksnprintf() fits. This doesn't
fix any bugs per-say but it does ensure that any normal integer OID
will be properly displayed.
* No current sysctls have OIDs large enough to have triggered the problem.
int error = 0;
struct sysctl_oid *oid;
struct sysctl_oid_list *lsp = &sysctl__children, *lsp2;
- char buf[10];
+ char buf[16];
sysctl_lock(LK_SHARED);
while (namelen) {
if (!lsp) {
- ksnprintf(buf,sizeof(buf),"%d",*name);
+ ksnprintf(buf, sizeof(buf), "%d", *name);
if (req->oldidx)
error = SYSCTL_OUT(req, ".", 1);
if (!error)