bump version
[buildroot.git] / package / samba / samba-remove-legacy-index.patch
blob15deb999b196ebed815bd5849dcdb43183227314
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
4 @@ -615,14 +615,14 @@
5 obj = NULL;
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)
13 return False;
14 start = begin+1;
16 while(start < end) {
17 - stop = index(start, ',');
18 + stop = strchr(start, ',');
19 if(stop == NULL)
20 stop = end;
21 *stop = '\0';