summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist/lookup.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-07-19 21:57:35 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-07-19 21:57:35 +0000
commit1bcf7626ee3d23d7906d15f196d9791bee66cbe0 (patch)
tree0df790e92d55eb42c6fd3f8c13d252077b2632f9 /usr.bin/oldrdist/lookup.c
parentd62a5c66cb10886e1f037eab3be26d8424fc486e (diff)
oldrdist now uses rsh so doesn't need to be setuid.
Incorporates some changes from Chris Siebenmann <cks@utcc.utoronto.ca> and rdist 6.1.2. Also fixes at least one possible core dump and uses strr?chr() instead of r?index().
Diffstat (limited to 'usr.bin/oldrdist/lookup.c')
-rw-r--r--usr.bin/oldrdist/lookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/lookup.c b/usr.bin/oldrdist/lookup.c
index 0048426a9b7..b4b0b332652 100644
--- a/usr.bin/oldrdist/lookup.c
+++ b/usr.bin/oldrdist/lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lookup.c,v 1.3 1996/07/08 20:49:11 deraadt Exp $ */
+/* $OpenBSD: lookup.c,v 1.4 1996/07/19 21:57:32 millert Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -35,7 +35,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/9/93"; */
-static char *rcsid = "$OpenBSD: lookup.c,v 1.3 1996/07/08 20:49:11 deraadt Exp $";
+static char *rcsid = "$OpenBSD: lookup.c,v 1.4 1996/07/19 21:57:32 millert Exp $";
#endif /* not lint */
#include "defs.h"
@@ -67,7 +67,7 @@ define(name)
if (debug)
printf("define(%s)\n", name);
- cp = index(name, '=');
+ cp = strchr(name, '=');
if (cp == NULL)
value = NULL;
else if (cp[1] == '\0') {