From: Adam Dickmeiss Date: Wed, 10 Jan 2007 10:15:23 +0000 (+0000) Subject: Use strrchr rather than rindex (obsolete) X-Git-Tag: rather.stable.2007.01.11~18 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=717296a6a0e0a47ab62fea3597fea7ea7b9177f9;p=pazpar2-moved-to-github.git Use strrchr rather than rindex (obsolete) --- diff --git a/src/config.c b/src/config.c index e99991e..5a1b31a 100644 --- a/src/config.c +++ b/src/config.c @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.8 2007-01-10 10:04:23 adam Exp $ */ +/* $Id: config.c,v 1.9 2007-01-10 10:15:23 adam Exp $ */ #include @@ -421,7 +421,7 @@ int read_config(const char *fname) yaz_log(YLOG_FATAL, "Failed to read %s", fname); exit(1); } - if ((p = rindex(fname, '/'))) + if ((p = strrchr(fname, '/'))) { int len = p - fname; strncpy(confdir, fname, len);