summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-21 05:17:06 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-21 05:17:06 +0000
commitc7da5ba291a7e820a7382f5c78d7b5165526ecf4 (patch)
treeb9fa04951afaca343084f65790ea4d7ecb304590 /package
parenteca329ff4c15df1d04ce7d58d02ef115da1f305e (diff)
downloadbuildroot-novena-c7da5ba291a7e820a7382f5c78d7b5165526ecf4.tar.gz
buildroot-novena-c7da5ba291a7e820a7382f5c78d7b5165526ecf4.zip
Patch to remove usage of legacy 'index' function.
Diffstat (limited to 'package')
-rw-r--r--package/samba/samba-remove-legacy-index.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/samba/samba-remove-legacy-index.patch b/package/samba/samba-remove-legacy-index.patch
new file mode 100644
index 000000000..9fa822879
--- /dev/null
+++ b/package/samba/samba-remove-legacy-index.patch
@@ -0,0 +1,22 @@
+diff -ur samba-3.0.23d/source/registry/reg_perfcount.c samba-3.0.23d-patched/source/registry/reg_perfcount.c
+--- samba-3.0.23d/source/registry/reg_perfcount.c 2006-07-10 11:27:54.000000000 -0500
++++ samba-3.0.23d-patched/source/registry/reg_perfcount.c 2007-01-20 23:12:23.456180669 -0600
+@@ -614,15 +614,15 @@
+ 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';