b25b711e4a
Bump to version 3.5.11 and also update the download location. Signed-off-by: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
21 lines
544 B
Diff
21 lines
544 B
Diff
--- a/source3/registry/reg_perfcount.c
|
|
+++ b/source3/registry/reg_perfcount.c
|
|
@@ -616,14 +616,14 @@ static bool _reg_perfcount_add_counter(P
|
|
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';
|