From 74a755f2914f83249677afdb89705119f6a9a343 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Jul 2005 18:34:16 +0000 Subject: [PATCH] Use strchr instead of index --- data1/d1_absyn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data1/d1_absyn.c b/data1/d1_absyn.c index 4ab6d1a..823dab9 100644 --- a/data1/d1_absyn.c +++ b/data1/d1_absyn.c @@ -1,4 +1,4 @@ -/* $Id: d1_absyn.c,v 1.9.2.3 2005-06-29 16:52:50 adam Exp $ +/* $Id: d1_absyn.c,v 1.9.2.4 2005-07-19 18:34:16 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -467,7 +467,7 @@ static int melm2xpath(char *melm, char *buf) char *field = melm; char *subfield; char *fieldtype; - if ((dollar = index(melm, '$'))) { + if ((dollar = strchr(melm, '$'))) { *dollar = '\0'; subfield = ++dollar; } else -- 1.7.10.4