commit | 8560ef291ca06948e5f49bccf4bf1e714654b718 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Wed May 16 12:23:58 2012 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed May 16 12:23:58 2012 +0200 |
tree | deb55dc875c645b5fbf22265521396d3476c03fc | |
parent | 048cc42f08ac64a04d14e6de17611a5e7ec3b400 [diff] |
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>