projects
/
strace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8631ca
)
sysctl: cast pointers to kernel_ureg_t instead of size_t
author
Dmitry V. Levin
<ldv@altlinux.org>
Fri, 23 Dec 2016 23:49:55 +0000
(23:49 +0000)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Sat, 24 Dec 2016 14:58:42 +0000
(14:58 +0000)
* sysctl.c (SYS_FUNC(sysctl)): Cast __sysctl_args.oldval and
__sysctl_args.newval pointers to kernel_ureg_t instead of size_t.
sysctl.c
patch
|
blob
|
history
diff --git
a/sysctl.c
b/sysctl.c
index 12763ac4b0bee09f5f4434cbe101cf261e980454..94779572a112331f75990728738550b92c796127 100644
(file)
--- a/
sysctl.c
+++ b/
sysctl.c
@@
-173,7
+173,7
@@
SYS_FUNC(sysctl)
&& (name[1] == KERN_OSRELEASE
|| name[1] == KERN_OSTYPE
)))) {
- printpath(tcp, (
size_t)
info.oldval);
+ printpath(tcp, (
kernel_ureg_t)
info.oldval);
} else {
tprintf("%p", info.oldval);
}
@@
-183,7
+183,7
@@
SYS_FUNC(sysctl)
else if (syserror(tcp))
tprintf("%p", info.newval);
else
- printpath(tcp, (
size_t)
info.newval);
+ printpath(tcp, (
kernel_ureg_t)
info.newval);
tprintf(", %lu", (unsigned long)info.newlen);
}