Correct string pointer offset for error printout.
This commit is contained in:
parent
dddd3326a1
commit
56eb62091a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user