summaryrefslogtreecommitdiff
path: root/mtd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-05-16 12:23:58 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-05-16 12:23:58 +0200
commit8560ef291ca06948e5f49bccf4bf1e714654b718 (patch)
treedeb55dc875c645b5fbf22265521396d3476c03fc /mtd.c
parent048cc42f08ac64a04d14e6de17611a5e7ec3b400 (diff)
downloadstrace-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