Correct string pointer offset for error printout.

This commit is contained in:
hselasky 2015-03-24 16:37:19 +00:00
parent dddd3326a1
commit 56eb62091a

View File

@ -285,7 +285,7 @@ sysctl_load_tunable_by_oid_locked(struct sysctl_oid *oidp)
error = sysctl_root_handler_locked(oidp, oidp->oid_arg1,
oidp->oid_arg2, &req);
if (error != 0)
printf("Setting sysctl %s failed: %d\n", path, error);
printf("Setting sysctl %s failed: %d\n", path + rem, error);
if (penv != NULL)
freeenv(penv);
}