From 5695b2f051f107d6651930bb1822af9dc84fa41d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 29 Jan 1995 05:33:05 +0000 Subject: [PATCH] (parse_old_offset): Use strchr, not index. --- src/od.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/od.c b/src/od.c index 83b45ebc56..807635f600 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 { -- 2.47.3