Use strchr(3) instead of index(3) since it is POSIX compliant and not
authorJoey Schulze <joey@infodrom.org>
Fri, 6 Aug 2004 20:50:09 +0000 (20:50 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 6 Aug 2004 20:50:09 +0000 (20:50 +0000)
only BSD 4.3 compliant.

dtaus.c

diff --git a/dtaus.c b/dtaus.c
index 69177f8..382bc99 100644 (file)
--- 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);