From 0bc94c21e5fe1eab59029e99dec4fef6f378fbb1 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 27 Oct 2010 11:42:34 -0700 Subject: Fix bug 7754 - samba uses index(), marked as legacy. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Oct 27 19:25:16 UTC 2010 on sn-devel-104 --- source3/registry/reg_perfcount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c index c53036fc8b..6a9c1af61b 100644 --- a/source3/registry/reg_perfcount.c +++ b/source3/registry/reg_perfcount.c @@ -621,14 +621,14 @@ static bool _reg_perfcount_add_counter(struct PERF_DATA_BLOCK *block, obj = NULL; memset(buf, 0, PERFCOUNT_MAX_LEN); memcpy(buf, data.dptr, data.dsize); - begin = index(buf, '['); - end = index(buf, ']'); + begin = strchr(buf, '['); + end = strchr(buf, ']'); if(begin == NULL || end == NULL) return False; start = begin+1; while(start < end) { - stop = index(start, ','); + stop = strchr(start, ','); if(stop == NULL) stop = end; *stop = '\0'; -- cgit