summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-29 22:38:19 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-29 22:38:19 +0000
commitc5ed1cf8f7db6afec444b8744ed27c596e6b82d2 (patch)
tree9c4545aa0acd6244d1d857cd05377ec76fd760d2
parent0180b7cbd981e2513e9e516090fb698b822e5fbb (diff)
Missed one. The problem was reported by msaitoh@spa.is.uec.ac.jp
-rw-r--r--lib/libkvm.old/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm.old/kvm.c b/lib/libkvm.old/kvm.c
index 95037b1c057..7a22d6f83a9 100644
--- a/lib/libkvm.old/kvm.c
+++ b/lib/libkvm.old/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.5 1998/06/29 22:27:46 angelos Exp $ */
+/* $OpenBSD: kvm.c,v 1.6 1998/06/29 22:38:18 angelos Exp $ */
/* $NetBSD: kvm.c,v 1.2 1996/05/13 02:30:22 thorpej Exp $ */
@@ -496,7 +496,7 @@ kvm_read(kd, kva, buf, len)
cc = _kvm_kvatop(kd, kva, &pa);
if (cc == 0)
- return (0);
+ return (-1);
if (cc > len)
cc = len;
errno = 0;