summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-01-29 05:33:05 +0000
committerJim Meyering <jim@meyering.net>1995-01-29 05:33:05 +0000
commit5695b2f051f107d6651930bb1822af9dc84fa41d (patch)
treea3720eab7d23a4f7394033a3ea3d812384630023 /src/od.c
parentfaed18c2670bc3da15c899e2bced49bb75984646 (diff)
downloadcoreutils-5695b2f051f107d6651930bb1822af9dc84fa41d.tar.xz
(parse_old_offset): Use strchr, not index.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/od.c b/src/od.c
index 83b45ebc5..807635f60 100644
--- a/src/od.c
+++ b/src/od.c
@@ -1340,7 +1340,7 @@ parse_old_offset (s)
/* Determine the radix we'll use to interpret S. If there is a `.',
it's decimal, otherwise, if the string begins with `0X'or `0x',
it's hexadecimal, else octal. */
- if (index (s, '.') != NULL)
+ if (strchr (s, '.') != NULL)
radix = 10;
else
{