From 3997daa295f3d13bfcadb51fae33450dd8dae30c Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Fri, 6 Aug 2004 20:50:09 +0000 Subject: [PATCH] Use strchr(3) instead of index(3) since it is POSIX compliant and not only BSD 4.3 compliant. --- dtaus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtaus.c b/dtaus.c index 69177f8..382bc99 100644 --- a/dtaus.c +++ b/dtaus.c @@ -1300,7 +1300,7 @@ int control2dtaus (char *ccontrol, char *cdtaus, char *cbeleg, char *ccheck, cha /* Convert commast to dots for later processing */ for (i=0; line[i]; i++) if (line[i] == ',') line[i] = '.'; - if ((cp = index (line, '.')) == NULL) { + if ((cp = strchr (line, '.')) == NULL) { if (!(valC[recindex] = (char *)malloc (strlen(line)+4))) return 0; sprintf (valC[recindex], "%s.00", line); -- 2.20.1