1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../samba/remove-legacy-index.patch.uclibc
5 # Copyright (C) 2007 - 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -ur samba-3.0.25a/source/registry/reg_perfcount.c samba-3.0.25a-patched/source/registry/reg_perfcount.c
18 --- samba-3.0.25a/source/registry/reg_perfcount.c 2007-02-28 22:55:05.000000000 -0600
19 +++ samba-3.0.25a-patched/source/registry/reg_perfcount.c 2007-06-19 11:40:01.000000000 -0500
22 memset(buf, 0, PERFCOUNT_MAX_LEN);
23 memcpy(buf, data.dptr, data.dsize);
24 - begin = index(buf, '[');
25 - end = index(buf, ']');
26 + begin = strchr(buf, '[');
27 + end = strchr(buf, ']');
28 if(begin == NULL || end == NULL)
33 - stop = index(start, ',');
34 + stop = strchr(start, ',');