diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-02 20:38:39 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-02 20:38:39 +0000 |
commit | f4b1dfafe5f5bd94a10bf7dd529b90892fc4e198 (patch) | |
tree | 8f40135a8755dc602d0f2369e0d5cf84c4248cf6 /usr.bin/pmdb/pmdb.c | |
parent | 89dd1a7aeacf472d2b7eb4de61e7fb43cd548e2b (diff) |
check return value from process_{read,write} proper
Diffstat (limited to 'usr.bin/pmdb/pmdb.c')
-rw-r--r-- | usr.bin/pmdb/pmdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pmdb/pmdb.c b/usr.bin/pmdb/pmdb.c index 3a4edf151fb..972c4028496 100644 --- a/usr.bin/pmdb/pmdb.c +++ b/usr.bin/pmdb/pmdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmdb.c,v 1.17 2003/06/10 22:20:49 deraadt Exp $ */ +/* $OpenBSD: pmdb.c,v 1.18 2003/08/02 20:38:38 mickey Exp $ */ /* * Copyright (c) 2002 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -327,7 +327,7 @@ cmd_examine(int argc, char **argv, void *arg) } } - if (process_read(ps, addr, &val, sizeof(val))) { + if (process_read(ps, addr, &val, sizeof(val)) < 0) { warn("Can't read process contents at 0x%lx", addr); return (0); } |