1 diff -ur samba-3.0.25a/source/registry/reg_perfcount.c samba-3.0.25a-patched/source/registry/reg_perfcount.c
2 --- samba-3.0.25a/source/registry/reg_perfcount.c 2007-02-28 22:55:05.000000000 -0600
3 +++ samba-3.0.25a-patched/source/registry/reg_perfcount.c 2007-06-19 11:40:01.000000000 -0500
6 memset(buf, 0, PERFCOUNT_MAX_LEN);
7 memcpy(buf, data.dptr, data.dsize);
8 - begin = index(buf, '[');
9 - end = index(buf, ']');
10 + begin = strchr(buf, '[');
11 + end = strchr(buf, ']');
12 if(begin == NULL || end == NULL)
17 - stop = index(start, ',');
18 + stop = strchr(start, ',');