]> granicus.if.org Git - strace/commit
Fix a few goofs in sys_sysctl()
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 May 2012 10:23:58 +0000 (12:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 May 2012 10:23:58 +0000 (12:23 +0200)
commit8560ef291ca06948e5f49bccf4bf1e714654b718
treedeb55dc875c645b5fbf22265521396d3476c03fc
parent048cc42f08ac64a04d14e6de17611a5e7ec3b400
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>
system.c