diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
commit | 3e150a880447536a0af58c395e5a857635e985d3 (patch) | |
tree | 867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /lib/libkvm.old/kvm.c | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
Diffstat (limited to 'lib/libkvm.old/kvm.c')
-rw-r--r-- | lib/libkvm.old/kvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm.old/kvm.c b/lib/libkvm.old/kvm.c index 90e61885c34..3848a606289 100644 --- a/lib/libkvm.old/kvm.c +++ b/lib/libkvm.old/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.2 1996/05/26 01:04:39 deraadt Exp $ */ +/* $OpenBSD: kvm.c,v 1.3 1997/01/17 07:11:56 millert Exp $ */ /* $NetBSD: kvm.c,v 1.2 1996/05/13 02:30:22 thorpej Exp $ */ @@ -363,7 +363,7 @@ kvm_dbopen(kd, uf) char kversion[_POSIX2_LINE_MAX]; char dbname[MAXPATHLEN]; - if ((cp = rindex(uf, '/')) != 0) + if ((cp = strrchr(uf, '/')) != 0) uf = cp + 1; (void)snprintf(dbname, sizeof(dbname), "%skvm_%s.db", _PATH_VARDB, uf); |