git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c4d023
)
Fix bug 7754 - samba uses index(), marked as legacy.
author
Sven Neumann
<s.neumann@raumfeld.com>
Wed, 27 Oct 2010 18:42:34 +0000
(11:42 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 27 Oct 2010 19:25:16 +0000
(19:25 +0000)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 27 19:25:16 UTC 2010 on sn-devel-104
source3/registry/reg_perfcount.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_perfcount.c
b/source3/registry/reg_perfcount.c
index c53036fc8bf33f4e77d30738f8be1cc06b3ccc53..6a9c1af61b7f4a0c2955a5234e6962fe88910874 100644
(file)
--- 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';