diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-05-16 12:23:58 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-05-16 12:23:58 +0200 |
commit | 8560ef291ca06948e5f49bccf4bf1e714654b718 (patch) | |
tree | deb55dc875c645b5fbf22265521396d3476c03fc /mtd.c | |
parent | 048cc42f08ac64a04d14e6de17611a5e7ec3b400 (diff) | |
download | strace-8560ef291ca06948e5f49bccf4bf1e714654b718.tar.gz strace-8560ef291ca06948e5f49bccf4bf1e714654b718.tar.bz2 strace-8560ef291ca06948e5f49bccf4bf1e714654b718.tar.xz |
Fix a few goofs in sys_sysctl()
* system.c (sys_sysctl): Cast pointer to long, not size_t,
when we intend to use it as an address. Set oldlen to 0 prior
to reading into it - we want to have deterministic result
if read fails.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mtd.c')
0 files changed, 0 insertions, 0 deletions