summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/timezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/timezone.c')
-rw-r--r--lib/libc/gen/timezone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/timezone.c b/lib/libc/gen/timezone.c
index 5f0fa66..9b50e79 100644
--- a/lib/libc/gen/timezone.c
+++ b/lib/libc/gen/timezone.c
@@ -59,7 +59,7 @@ timezone(int zone, int dst)
*end;
if ( (beg = getenv("TZNAME")) ) { /* set in environment */
- if ( (end = index(beg, ',')) ) {/* "PST,PDT" */
+ if ((end = strchr(beg, ','))) { /* "PST,PDT" */
if (dst)
return(++end);
*end = '\0';
OpenPOWER on IntegriCloud