summaryrefslogtreecommitdiff
path: root/package/samba/patches/patch-source3_registry_reg_perfcount_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-11-22 18:24:57 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-11-22 18:24:57 +0100
commit7eb57a4fac80b8c745f4ac811a07d134cc448d8a (patch)
tree7c5786cdee0c22cadf079670e69b45424701b290 /package/samba/patches/patch-source3_registry_reg_perfcount_c
parent9ae994b86d18e9d0baa680442e59724815bd872a (diff)
parentc111f14db1b4558ebf5b2e894315c8e5217bf6fc (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/samba/patches/patch-source3_registry_reg_perfcount_c')
-rw-r--r--package/samba/patches/patch-source3_registry_reg_perfcount_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/samba/patches/patch-source3_registry_reg_perfcount_c b/package/samba/patches/patch-source3_registry_reg_perfcount_c
new file mode 100644
index 000000000..650394f73
--- /dev/null
+++ b/package/samba/patches/patch-source3_registry_reg_perfcount_c
@@ -0,0 +1,20 @@
+--- samba-3.4.3.orig/source3/registry/reg_perfcount.c 2009-10-29 08:47:16.000000000 +0100
++++ samba-3.4.3/source3/registry/reg_perfcount.c 2009-11-20 21:11:54.000000000 +0100
+@@ -613,14 +613,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';