diff options
author | Sven Neumann <s.neumann@raumfeld.com> | 2010-10-27 11:42:34 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-10-27 19:25:16 +0000 |
commit | 0bc94c21e5fe1eab59029e99dec4fef6f378fbb1 (patch) | |
tree | c8adbb3539da9bb7ad593dd24bda802cf4750348 /source3/registry | |
parent | 8c4d023cc9f387dfdb70cfa4c62686925cdab193 (diff) | |
download | samba-0bc94c21e5fe1eab59029e99dec4fef6f378fbb1.tar.gz samba-0bc94c21e5fe1eab59029e99dec4fef6f378fbb1.tar.bz2 samba-0bc94c21e5fe1eab59029e99dec4fef6f378fbb1.zip |
Fix bug 7754 - samba uses index(), marked as legacy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 27 19:25:16 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_perfcount.c | 6 |
1 files 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'; |