summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-29 22:39:13 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-29 22:39:13 +0000
commita0dcbd64f6e48a7e41afc3f164499d7c14145de9 (patch)
treea8088c45ff145e0d5201bc24a5c56a1d74543c9a /lib/libkvm/kvm.c
parentc5ed1cf8f7db6afec444b8744ed27c596e6b82d2 (diff)
Missed one; The problem was reported by msaitoh@spa.is.uec.ac.jp, whom
I forgot to credit in my other commits.
Diffstat (limited to 'lib/libkvm/kvm.c')
-rw-r--r--lib/libkvm/kvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 314f9dfd499..2c3560ecf5e 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.11 1998/06/29 22:27:05 angelos Exp $ */
+/* $OpenBSD: kvm.c,v 1.12 1998/06/29 22:39:12 angelos Exp $ */
/* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */
/*-
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-static char *rcsid = "$OpenBSD: kvm.c,v 1.11 1998/06/29 22:27:05 angelos Exp $";
+static char *rcsid = "$OpenBSD: kvm.c,v 1.12 1998/06/29 22:39:12 angelos Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -896,7 +896,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;
foff = _kvm_pa2off(kd, pa);