projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9794003
)
Use strrchr rather than rindex (obsolete)
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:15:23 +0000
(10:15 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:15:23 +0000
(10:15 +0000)
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index
e99991e
..
5a1b31a
100644
(file)
--- 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 <string.h>
@@
-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);