summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/makedbm/makedbm.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
commit3e150a880447536a0af58c395e5a857635e985d3 (patch)
tree867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /usr.sbin/ypserv/makedbm/makedbm.c
parent8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff)
r?index -> strr?chr
Diffstat (limited to 'usr.sbin/ypserv/makedbm/makedbm.c')
-rw-r--r--usr.sbin/ypserv/makedbm/makedbm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/makedbm/makedbm.c b/usr.sbin/ypserv/makedbm/makedbm.c
index a3f025be54e..2a80257c9c0 100644
--- a/usr.sbin/ypserv/makedbm/makedbm.c
+++ b/usr.sbin/ypserv/makedbm/makedbm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makedbm.c,v 1.5 1997/01/15 23:44:32 millert Exp $ */
+/* $OpenBSD: makedbm.c,v 1.6 1997/01/17 07:14:32 millert Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: makedbm.c,v 1.5 1997/01/15 23:44:32 millert Exp $";
+static char rcsid[] = "$OpenBSD: makedbm.c,v 1.6 1997/01/17 07:14:32 millert Exp $";
#endif
#include <stdio.h>
@@ -208,7 +208,7 @@ create_database(infile,database,
}
snprintf(db_outfile, sizeof(db_outfile), "%s%s", database, YPDB_SUFFIX);
- slash = rindex(database, '/');
+ slash = strrchr(database, '/');
if (slash != NULL)
slash[1] = 0; /* truncate to dir */
else