2011-09-13 10:42:07 +02:00
|
|
|
--- a/source3/registry/reg_perfcount.c
|
|
|
|
+++ b/source3/registry/reg_perfcount.c
|
2008-12-12 10:09:51 +01:00
|
|
|
@@ -616,14 +616,14 @@ static bool _reg_perfcount_add_counter(P
|
2007-01-21 06:17:06 +01:00
|
|
|
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;
|
|
|
|
|
2007-07-17 02:21:16 +02:00
|
|
|
while(start < end) {
|
2007-01-21 06:17:06 +01:00
|
|
|
- stop = index(start, ',');
|
|
|
|
+ stop = strchr(start, ',');
|
|
|
|
if(stop == NULL)
|
|
|
|
stop = end;
|
|
|
|
*stop = '\0';
|