aboutsummaryrefslogtreecommitdiff
path: root/src/makepath.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-01-11 12:29:08 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-01-11 12:29:08 +0000
commitab1ca331f49536505d59d1a6347feca2cbfbd2eb (patch)
treee59dc27f6c7115b8c09f58c50573a4540fa71608 /src/makepath.c
parentbb5e5067204929c47d177f30afcd440928af88d7 (diff)
downloadcpio-ab1ca331f49536505d59d1a6347feca2cbfbd2eb.tar.gz
cpio-ab1ca331f49536505d59d1a6347feca2cbfbd2eb.tar.bz2
Use memset instead of bzero, memmove
(or memcpy, if appropriate), instead of bcopy, and strchr/strrchr instead of index/rindex.
Diffstat (limited to 'src/makepath.c')
-rw-r--r--src/makepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makepath.c b/src/makepath.c
index 9587ba8..8bd2b63 100644
--- a/src/makepath.c
+++ b/src/makepath.c
@@ -126,7 +126,7 @@ make_path (char *argpath,
slash = dirpath;
while (*slash == '/')
slash++;
- while ((slash = index (slash, '/')))
+ while ((slash = strchr (slash, '/')))
{
#ifdef HPUX_CDF
int iscdf;

Return to:

Send suggestions and report system problems to the System administrator.