2007-07-17 02:21:16 +02:00
|
|
|
diff -ur samba-3.0.25a/source/registry/reg_perfcount.c samba-3.0.25a-patched/source/registry/reg_perfcount.c
|
|
|
|
--- samba-3.0.25a/source/registry/reg_perfcount.c 2007-02-28 22:55:05.000000000 -0600
|
|
|
|
+++ samba-3.0.25a-patched/source/registry/reg_perfcount.c 2007-06-19 11:40:01.000000000 -0500
|
|
|
|
@@ -615,14 +615,14 @@
|
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';
|